Skip to content

Commit

Permalink
Add sequences to port script
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed May 29, 2024
1 parent 1f2ac05 commit d14df75
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions synapse/_scripts/synapse_port_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,36 @@ def alter_table(txn: LoggingTransaction) -> None:
)
],
)
await self._setup_sequence(
"device_lists_sequence",
[
("device_lists_stream", "stream_id"),
("user_signature_stream", "stream_id"),
("device_lists_outbound_pokes", "stream_id"),
("device_lists_changes_in_room", "stream_id"),
("device_lists_remote_pending", "stream_id"),
("device_lists_changes_converted_stream_position", "stream_id"),
],
)
await self._setup_sequence(
"e2e_cross_signing_keys_sequence",
[
("e2e_cross_signing_keys", "stream_id"),
],
)
await self._setup_sequence(
"push_rules_stream_sequence",
[
("push_rules_stream", "stream_id"),
],
)
await self._setup_sequence(
"pushers_sequence",
[
("pushers", "id"),
("deleted_pushers", "stream_id"),
],
)

# Step 3. Get tables.
self.progress.set_state("Fetching tables")
Expand Down

0 comments on commit d14df75

Please sign in to comment.