Commit Graph

6 Commits

Author SHA1 Message Date
Luna 3e390caffe add migration to maintain data consistency on members
the tables that should refer to members aren't doing so because
they were declared before the members table itself.

this leads to data inconsistency as members leave or get kicked
or get banned from a guild, and the relevant rows on those tables
ARE NOT removed as well.
2021-09-20 23:07:31 -03:00
Luna e42aadb6d0 migration.command: dont split on migration 0
(it's a hack)
2020-02-04 20:50:40 +00:00
Luna 6ba9b07381 0_base.sql: fix ordering of table creations
fixes attachments table being created BEFORE its foreign keys
2019-04-04 00:30:59 -03:00
Luna 6ba5c6e25f 0_base.sql: formatting 2019-04-03 23:54:04 -03:00
Luna e03dada1a7 migration: some fixes here and there
- 0_base.sql: make it rerunnable by dropping hardcoded constraints
2019-04-03 23:53:06 -03:00
Luna 02978542e7 remove all migrations, rename schema.sql to a 0_base.sql 2019-04-03 22:04:59 -03:00
Renamed from schema.sql (Browse further)