diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2016-02-11 14:10:00 +0000 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2016-02-11 17:26:42 +0000 |
commit | 763360594dfb90433f693056d3d64ac82409fc87 (patch) | |
tree | 1cfd7afde7a81909134349c09ba1cbc51c145990 /scripts | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-763360594dfb90433f693056d3d64ac82409fc87.tar.xz |
Mark AS users with their AS's ID
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/synapse_port_db | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/synapse_port_db b/scripts/synapse_port_db index fc92bbf2d8..a2a0f364cf 100755 --- a/scripts/synapse_port_db +++ b/scripts/synapse_port_db @@ -309,8 +309,8 @@ class Porter(object): **self.postgres_config["args"] ) - sqlite_engine = create_engine("sqlite3") - postgres_engine = create_engine("psycopg2") + sqlite_engine = create_engine(FakeConfig(sqlite_config)) + postgres_engine = create_engine(FakeConfig(postgres_config)) self.sqlite_store = Store(sqlite_db_pool, sqlite_engine) self.postgres_store = Store(postgres_db_pool, postgres_engine) @@ -792,3 +792,8 @@ if __name__ == "__main__": if end_error_exec_info: exc_type, exc_value, exc_traceback = end_error_exec_info traceback.print_exception(exc_type, exc_value, exc_traceback) + + +class FakeConfig: + def __init__(self, database_config): + self.database_config = database_config |