1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

fix: relax trends tables constraints (#6386)

This commit is contained in:
Mateusz Kwasniewski 2024-02-29 10:56:14 +01:00 committed by GitHub
parent 5a80d5e026
commit 68095916e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,18 @@
exports.up = function (db, cb) {
db.runSql(
`
ALTER TABLE flag_trends DROP CONSTRAINT IF EXISTS flag_trends_project_fkey;
ALTER TABLE project_client_metrics_trends DROP CONSTRAINT IF EXISTS project_client_metrics_trends_project_fkey;
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
`,
cb,
);
};