Commit Graph

6 Commits

Author SHA1 Message Date
कारतोफ्फेलस्क्रिप्ट™
e152cfe27c fix(core): All migrations should run in a transaction (#6519) 2023-06-22 17:51:17 +02:00
कारतोफ्फेलस्क्रिप्ट™
82fe6383ef refactor(core): Delete boilerplate code across migrations (no-changelog) (#5254) 2023-05-05 11:28:59 +02:00
कारतोफ्फेलस्क्रिप्ट™
3a435f7057 fix(core): Disable transactions on sqlite migrations that use PRAGMA foreign_keys (#5392)
`PRAGMA foreign_keys` is [a no-op within a sqlite transaction](https://www.sqlite.org/pragma.html#pragma_foreign_keys).
This causes cascade deletes to happen when we create a new user table, and drop the old user table.
2023-02-07 15:14:59 +01:00
Omar Ajoue
c5245dd387 fix: Add schema to postgres migrations (hotfix) (#5218)
* fix: Add schema to postgres migrations
2023-01-23 10:16:20 +01:00
कारतोफ्फेलस्क्रिप्ट™
62cce2e518 fix: Run every DB migration inside a transaction (#5129)
* always each DB migrations in a transaction

* `VACUUM` isn't allowed inside transactions.

* `PRAGMA foreign_keys` are automatically toggled before and after every down migration
2023-01-11 18:29:05 +01:00
कारतोफ्फेलस्क्रिप्ट™
0e955760a1 refactor: On workflow deletion, cascade delete all entities associated with it (#5102) 2023-01-10 09:23:44 +01:00