mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
25f43faa70
The hope here is that by moving all the schema files into synapse/storage/schema, it gets a bit easier for newcomers to navigate. It certainly got easier for me to write a helpful README. There's more to do on that front, but I'll follow up with other PRs for that.
8 lines
589 B
SQL
8 lines
589 B
SQL
|
|
INSERT INTO appservice_stream_position (stream_ordering) SELECT COALESCE(MAX(stream_ordering), 0) FROM events;
|
|
INSERT INTO federation_stream_position (type, stream_id) VALUES ('federation', -1);
|
|
INSERT INTO federation_stream_position (type, stream_id) SELECT 'events', coalesce(max(stream_ordering), -1) FROM events;
|
|
INSERT INTO user_directory_stream_pos (stream_id) VALUES (0);
|
|
INSERT INTO stats_stream_pos (stream_id) VALUES (0);
|
|
INSERT INTO event_push_summary_stream_ordering (stream_ordering) VALUES (0);
|
|
-- device_max_stream_id is handled separately in 56/device_stream_id_insert.sql |