diff options
author | John Kristensen <john.kristensen@dpipwe.tas.gov.au> | 2017-03-17 10:53:32 +1100 |
---|---|---|
committer | John Kristensen <john.kristensen@dpipwe.tas.gov.au> | 2017-03-17 10:53:32 +1100 |
commit | be44558886f46ca166930a9acd39c5ba2c089ea4 (patch) | |
tree | f15f46d6dc770cf058549d579a8ce02cb007f633 /scripts | |
parent | Merge pull request #2022 from matrix-org/erikj/no_op_sync (diff) | |
download | synapse-be44558886f46ca166930a9acd39c5ba2c089ea4.tar.xz |
Don't assume postgres tables are in the public schema during db port
When fetching the list of tables from the postgres database during the db port, it is assumed that the tables are in the public schema. This is not always the case, so lets just rely on postgres to determine the default schema to use.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/synapse_port_db | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/synapse_port_db b/scripts/synapse_port_db index ea367a1281..2e5d666707 100755 --- a/scripts/synapse_port_db +++ b/scripts/synapse_port_db @@ -447,9 +447,7 @@ class Porter(object): postgres_tables = yield self.postgres_store._simple_select_onecol( table="information_schema.tables", - keyvalues={ - "table_schema": "public", - }, + keyvalues={}, retcol="distinct table_name", ) |