diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-06-03 22:23:40 +1000 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2019-06-03 22:23:40 +1000 |
commit | 7f81b967ca1d4004832e96513ad33e802f9a6f78 (patch) | |
tree | cae99ffcdb6b2b129d25f85e45eb09cf5a5fc2b1 /synapse/storage/prepare_database.py | |
parent | full schema (diff) | |
download | synapse-7f81b967ca1d4004832e96513ad33e802f9a6f78.tar.xz |
fix schemas
Diffstat (limited to 'synapse/storage/prepare_database.py')
-rw-r--r-- | synapse/storage/prepare_database.py | 4 |
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) |