create databases with UTF8 encoding

This commit is contained in:
Jan Dittberner 2015-01-10 18:25:30 +01:00
parent 0ddf72b323
commit 7ee5b7fc5f

View file

@ -140,6 +140,7 @@ def create_pgsql_database(dbname, username):
curs.execute(
"""
CREATE DATABASE %(dbname)s OWNER %(username)s
TEMPLATE template0 ENCODING UTF8
""",
{'dbname': Ident(dbname), 'username': Ident(username)}
)