mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
c66a06ac6b
This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage.
10 lines
265 B
SQL
10 lines
265 B
SQL
|
|
|
|
DELETE FROM event_to_state_groups WHERE state_group not in (
|
|
SELECT MAX(state_group) FROM event_to_state_groups GROUP BY event_id
|
|
);
|
|
|
|
DELETE FROM event_to_state_groups WHERE rowid not in (
|
|
SELECT MIN(rowid) FROM event_to_state_groups GROUP BY event_id
|
|
);
|