mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
10 lines
265 B
MySQL
10 lines
265 B
MySQL
|
|
||
|
|
||
|
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
|
||
|
);
|