summary refs log tree commit diff
path: root/synapse/storage/prepare_database.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2019-06-03 22:23:40 +1000
committerAmber Brown <hawkowl@atleastfornow.net>2019-06-03 22:23:40 +1000
commit7f81b967ca1d4004832e96513ad33e802f9a6f78 (patch)
treecae99ffcdb6b2b129d25f85e45eb09cf5a5fc2b1 /synapse/storage/prepare_database.py
parentfull schema (diff)
downloadsynapse-7f81b967ca1d4004832e96513ad33e802f9a6f78.tar.xz
fix schemas
Diffstat (limited to 'synapse/storage/prepare_database.py')
-rw-r--r--synapse/storage/prepare_database.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/prepare_database.py b/synapse/storage/prepare_database.py
index 07478b6672..b81c05369f 100644
--- a/synapse/storage/prepare_database.py
+++ b/synapse/storage/prepare_database.py
@@ -146,9 +146,9 @@ def _setup_new_database(cur, database_engine):
 
     directory_entries = os.listdir(sql_dir)
 
-    for filename in fnmatch.filter(directory_entries, "*.sql") + fnmatch.filter(
+    for filename in sorted(fnmatch.filter(directory_entries, "*.sql") + fnmatch.filter(
         directory_entries, "*.sql." + specific
-    ):
+    )):
         sql_loc = os.path.join(sql_dir, filename)
         logger.debug("Applying schema %s", sql_loc)
         executescript(cur, sql_loc)