create databases with UTF8 encoding
This commit is contained in:
parent
0ddf72b323
commit
7ee5b7fc5f
1 changed files with 1 additions and 0 deletions
|
@ -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)}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue