diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-04 15:18:30 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-04 15:18:30 +0000 |
commit | 1af1c45dc0664dcb09a4546077990884b906ffb9 (patch) | |
tree | 4dc03903127465f7a0b9a14121d5f32755274553 /synapse/app | |
parent | WIP vertobridge AS (diff) | |
parent | Note that we don't specify execution order (diff) | |
download | synapse-1af1c45dc0664dcb09a4546077990884b906ffb9.tar.xz |
Merge pull request #99 from matrix-org/schema_versioning
Schema versioning
Diffstat (limited to 'synapse/app')
-rwxr-xr-x | synapse/app/homeserver.py | 5 |
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( |