diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-29 11:42:28 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-29 11:42:28 +0100 |
commit | 204132a998ec3be7069a9f2dada323bcdb217908 (patch) | |
tree | daca5c26782846ba1ff66260f8fef4a246522b64 /scripts | |
parent | improve postgres blurb a bit (diff) | |
download | synapse-204132a998ec3be7069a9f2dada323bcdb217908.tar.xz |
Check that postgres database has correct charset set
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/port_from_sqlite_to_postgres.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/port_from_sqlite_to_postgres.py b/scripts/port_from_sqlite_to_postgres.py index 3296f1f54f..da760af087 100644 --- a/scripts/port_from_sqlite_to_postgres.py +++ b/scripts/port_from_sqlite_to_postgres.py @@ -283,6 +283,10 @@ class Porter(object): self.sqlite_store = Store(sqlite_db_pool, sqlite_engine) self.postgres_store = Store(postgres_db_pool, postgres_engine) + yield self.postgres_store.execute( + postgres_engine.check_database + ) + # Step 1. Set up databases. self.progress.set_state("Preparing SQLite3") self.setup_db(sqlite_config, sqlite_engine) |