Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix port db script
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jun 15, 2023
1 parent 00ad613 commit 7266aee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Binary file modified .ci/test_db.db
Binary file not shown.
9 changes: 8 additions & 1 deletion synapse/_scripts/synapse_port_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@
"ui_auth_sessions",
"ui_auth_sessions_credentials",
"ui_auth_sessions_ips",
# Ignore the worker locks table, as a) there shouldn't be any acquired locks
# after porting, and b) the circular foreign key constraints make it hard to
# port.
"worker_read_write_locks_mode",
"worker_read_write_locks",
}


Expand Down Expand Up @@ -803,7 +808,9 @@ def alter_table(txn: LoggingTransaction) -> None:
)
# Map from table name to args passed to `handle_table`, i.e. a tuple
# of: `postgres_size`, `table_size`, `forward_chunk`, `backward_chunk`.
tables_to_port_info_map = {r[0]: r[1:] for r in setup_res}
tables_to_port_info_map = {
r[0]: r[1:] for r in setup_res if r[0] not in IGNORED_TABLES
}

# Step 5. Do the copying.
#
Expand Down

0 comments on commit 7266aee

Please sign in to comment.