1
0
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:
Nuno Góis 2023-02-23 11:39:39 +00:00 committed by GitHub
parent bc72e9c10f
commit 7629fcba82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
);
};