Skip to content

Commit

Permalink
Don't assume postgres tables are in the public schema during db port
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jerrykan committed Mar 16, 2017
1 parent 248eb46 commit be44558
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/synapse_port_db
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand Down

0 comments on commit be44558

Please sign in to comment.