mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: notifications tables drop order (#3186)
Since `user_notifications` references `notifications`, it makes sense to
drop `user_notifications` before dropping `notifications` and not the
other way around. This should fix the failing tests on Enterprise with
latest main.
Thanks @gastonfournier for the help finding the bug 👍
This commit is contained in:
parent
bc72e9c10f
commit
7629fcba82
@ -25,8 +25,9 @@ exports.up = function (db, cb) {
|
||||
exports.down = function (db, cb) {
|
||||
db.runSql(
|
||||
`
|
||||
DROP TABLE IF EXISTS user_notifications;
|
||||
DROP TABLE IF EXISTS notifications;
|
||||
DROP TABLE IF EXISTS user_notifications;`,
|
||||
`,
|
||||
cb,
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user