Commit graph

7 commits

Author SHA1 Message Date
Neil Alexander 56c4f3c42f
SQLite 2022-10-17 15:00:20 +01:00
Neil Alexander a679a62c9f
PostgreSQL works I think 2022-10-17 14:18:48 +01:00
Neil Alexander 6225a706c6
Tweak logging 2022-10-17 13:23:50 +01:00
Neil Alexander 1f077a0257
PostgreSQL sequences and indexes 2022-10-17 13:21:30 +01:00
Neil Alexander 4c52681a49
Initial renaming 2022-10-17 12:16:35 +01:00
Till 081f5e7226
Update database migrations, remove goose (#2264)
* Add new db migration

* Update migrations
Remove goose

* Add possibility to test direct upgrades

* Try to fix WASM test

* Add checks for specific migrations

* Remove AddMigration
Use WithTransaction
Add Dendrite version to table

* Fix linter issues

* Update tests

* Update comments, outdent if

* Namespace migrations

* Add direct upgrade tests, skipping over one version

* Split migrations

* Update go version in CI

* Fix copy&paste mistake

* Use contexts in migrations

Co-authored-by: kegsay <kegan@matrix.org>
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-07-25 10:39:22 +01:00
Neil Alexander 153bfbbea5
Merge both user API databases into one (#2186)
* Merge user API databases into one

* Remove DeviceDatabase from config

* Fix tests

* Try that again

* Clean up keyserver device keys when the devices no longer exist in the user API

* Tweak ordering

* Fix UserExists flag, device check

* Allow including empty entries so we can clean them up

* Remove logging
2022-02-18 11:31:05 +00:00