Skip to content

Commit d14df75

Browse files
committed
Add sequences to port script
1 parent 1f2ac05 commit d14df75

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: synapse/_scripts/synapse_port_db.py

+30
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,36 @@ def alter_table(txn: LoggingTransaction) -> None:
816816
)
817817
],
818818
)
819+
await self._setup_sequence(
820+
"device_lists_sequence",
821+
[
822+
("device_lists_stream", "stream_id"),
823+
("user_signature_stream", "stream_id"),
824+
("device_lists_outbound_pokes", "stream_id"),
825+
("device_lists_changes_in_room", "stream_id"),
826+
("device_lists_remote_pending", "stream_id"),
827+
("device_lists_changes_converted_stream_position", "stream_id"),
828+
],
829+
)
830+
await self._setup_sequence(
831+
"e2e_cross_signing_keys_sequence",
832+
[
833+
("e2e_cross_signing_keys", "stream_id"),
834+
],
835+
)
836+
await self._setup_sequence(
837+
"push_rules_stream_sequence",
838+
[
839+
("push_rules_stream", "stream_id"),
840+
],
841+
)
842+
await self._setup_sequence(
843+
"pushers_sequence",
844+
[
845+
("pushers", "id"),
846+
("deleted_pushers", "stream_id"),
847+
],
848+
)
819849

820850
# Step 3. Get tables.
821851
self.progress.set_state("Fetching tables")

0 commit comments

Comments
 (0)