summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-29 11:42:28 +0100
committerErik Johnston <erik@matrix.org>2015-04-29 11:42:28 +0100
commit204132a998ec3be7069a9f2dada323bcdb217908 (patch)
treedaca5c26782846ba1ff66260f8fef4a246522b64 /scripts
parentimprove postgres blurb a bit (diff)
downloadsynapse-204132a998ec3be7069a9f2dada323bcdb217908.tar.xz
Check that postgres database has correct charset set
Diffstat (limited to 'scripts')
-rw-r--r--scripts/port_from_sqlite_to_postgres.py4
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)