0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 01:23:43 +01:00
dendrite/roomserver/storage/sqlite3/deltas
kegsay c849e74dfc
db migration: fix #1844 and add additional assertions (#1889)
* db migration: fix #1844 and add additional assertions

- Migration scripts will now check to see if there are any unconverted
  snapshot IDs and fail the migration if there are any. This should
  prevent people from getting a corrupt database in the event the root
  cause is still unknown.
- Add an ORDER BY clause when doing batch queries in the postgres
  migration. LIMIT and OFFSET without ORDER BY are undefined and must
  not be relied upon to produce a deterministic ordering (e.g row order).
  See https://www.postgresql.org/docs/current/queries-limit.html

* Linting

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-06-29 11:25:17 +01:00
..
20201028212440_add_forgotten_column.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
2021041615092700_state_blocks_refactor.go db migration: fix #1844 and add additional assertions (#1889) 2021-06-29 11:25:17 +01:00