mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: use template1 when creating databases
This commit is contained in:
parent
2274f7ab8b
commit
cb05f2b9d8
@ -833,7 +833,7 @@ class runbot_build(models.Model):
|
||||
self._local_pg_dropdb(dbname)
|
||||
_logger.debug("createdb %s", dbname)
|
||||
with local_pgadmin_cursor() as local_cr:
|
||||
local_cr.execute("""CREATE DATABASE "%s" TEMPLATE template0 LC_COLLATE 'C' ENCODING 'unicode'""" % dbname)
|
||||
local_cr.execute("""CREATE DATABASE "%s" TEMPLATE template1 LC_COLLATE 'C' ENCODING 'unicode'""" % dbname)
|
||||
|
||||
def _log(self, func, message, level='INFO', log_type='runbot', path='runbot'):
|
||||
self.ensure_one()
|
||||
|
Loading…
Reference in New Issue
Block a user