summary refs log tree commit diff
path: root/scripts/synapse_port_db
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-06-17 16:32:39 +0100
committerErik Johnston <erik@matrix.org>2020-06-17 16:32:39 +0100
commitd06f4ab6930dae6fb9e2504a7d01015d8e18aebe (patch)
treebed564aa6ab9e941284adc0c3e8f3587c9f6c3cb /scripts/synapse_port_db
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parentMerge pull request #7716 from matrix-org/babolivier/unread_fix (diff)
downloadsynapse-d06f4ab6930dae6fb9e2504a7d01015d8e18aebe.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'scripts/synapse_port_db')
-rwxr-xr-xscripts/synapse_port_db19
1 files changed, 12 insertions, 7 deletions
diff --git a/scripts/synapse_port_db b/scripts/synapse_port_db

index a0d81c77c2..810e08beb5 100755 --- a/scripts/synapse_port_db +++ b/scripts/synapse_port_db
@@ -127,6 +127,16 @@ APPEND_ONLY_TABLES = [ ] +IGNORED_TABLES = { + "user_directory", + "user_directory_search", + "users_who_share_rooms", + "users_in_pubic_room", + "ui_auth_sessions", + "ui_auth_sessions_credentials", +} + + # Error returned by the run function. Used at the top-level part of the script to # handle errors and return codes. end_error = None @@ -289,13 +299,8 @@ class Porter(object): ) return - if table in ( - "user_directory", - "user_directory_search", - "users_who_share_rooms", - "users_in_pubic_room", - ): - # We don't port these tables, as they're a faff and we can regenreate + if table in IGNORED_TABLES: + # We don't port these tables, as they're a faff and we can regenerate # them anyway. self.progress.update(table, table_size) # Mark table as done return