summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-04 12:04:19 +0000
committerErik Johnston <erik@matrix.org>2015-03-04 12:04:19 +0000
commit82b34e813de4dadb8ec5bce068f7113e32e60ead (patch)
tree882f9d407ff6afe56e57d9f3e0cf701b658581c6 /synapse/app/homeserver.py
parentSYN-67: Begin changing the way we handle schema versioning (diff)
downloadsynapse-82b34e813de4dadb8ec5bce068f7113e32e60ead.tar.xz
SYN-67: Finish up implementing new database schema management
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 5695d5aff8..b3ba7dfddc 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -17,7 +17,9 @@
 import sys
 sys.dont_write_bytecode = True
 
-from synapse.storage import prepare_database, UpgradeDatabaseException
+from synapse.storage import (
+    prepare_database, prepare_sqlite3_database, UpgradeDatabaseException,
+)
 
 from synapse.server import HomeServer
 
@@ -335,6 +337,7 @@ def setup():
 
     try:
         with sqlite3.connect(db_name) as db_conn:
+            prepare_sqlite3_database(db_conn)
             prepare_database(db_conn)
     except UpgradeDatabaseException:
         sys.stderr.write(