diff options
author | Erik Johnston <erik@matrix.org> | 2020-01-28 13:44:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 13:44:21 +0000 |
commit | 02b44db922f01a35787d2535a834c9774b68020b (patch) | |
tree | 0633655539933d9d054f7f0e774b66e6e2ec00f0 /synapse/storage/prepare_database.py | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-02b44db922f01a35787d2535a834c9774b68020b.tar.xz |
Warn if postgres database has non-C locale. (#6734)
As using non-C locale can cause issues on upgrading OS.
Diffstat (limited to 'synapse/storage/prepare_database.py')
-rw-r--r-- | synapse/storage/prepare_database.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/prepare_database.py b/synapse/storage/prepare_database.py index e86984cd50..c285ef52a0 100644 --- a/synapse/storage/prepare_database.py +++ b/synapse/storage/prepare_database.py @@ -136,6 +136,11 @@ def _setup_new_database(cur, database_engine, data_stores): data_stores (list[str]): The names of the data stores to instantiate on the given database. """ + + # We're about to set up a brand new database so we check that its + # configured to our liking. + database_engine.check_new_database(cur) + current_dir = os.path.join(dir_path, "schema", "full_schemas") directory_entries = os.listdir(current_dir) |