summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-03-04 15:24:21 +0000
committerDavid Baker <dave@matrix.org>2015-03-04 15:24:21 +0000
commited72fc3a503d292f6ca6b1b6e636278c8e2565e4 (patch)
treef10f4575f423735c290c220b078db746ec151608 /synapse/app/homeserver.py
parentMerge branch 'develop' into pushrules2 (diff)
parentMerge pull request #99 from matrix-org/schema_versioning (diff)
downloadsynapse-ed72fc3a503d292f6ca6b1b6e636278c8e2565e4.tar.xz
Merge branch 'develop' into pushrules2
Conflicts:
	synapse/storage/schema/pusher.sql
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(