mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-02 23:52:00 +00:00
![Richard van der Hoff](/assets/img/avatar_default.png)
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.
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
|
|
);
|