dendrite/roomserver/storage/sqlite3
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
..
deltas db migration: fix #1844 and add additional assertions (#1889) 2021-06-29 11:25:17 +01:00
event_json_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
event_state_keys_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
event_types_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
events_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
invite_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
membership_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
previous_events_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
published_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
redactions_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
room_aliases_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
rooms_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
state_block_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
state_block_table_test.go Support sqlite in addition to postgres (#869) 2020-02-13 17:27:33 +00:00
state_snapshot_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
storage.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00
transactions_table.go State storage refactor (#1839) 2021-04-26 13:25:57 +01:00