1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-09 11:14:29 +02:00

chore: add migration for release-plans-definitions that removes fk on users(id)

This commit is contained in:
David Leek 2024-10-31 13:41:05 +01:00
parent b8a4fbd867
commit 61ff3b2164
No known key found for this signature in database
GPG Key ID: 515EE0F1BB6D0BE1

View File

@ -0,0 +1,11 @@
exports.up = function(db, cb) {
db.runSql(`
ALTER TABLE release_plan_definitions DROP CONSTRAINT release_plan_definitions_created_by_user_id_fkey;
`, cb)
};
exports.down = function(db, cb) {
db.runSql(`
ALTER TABLE release_plan_definitions ADD CONSTRAINT release_plan_definitions_created_by_user_id_fkey FOREIGN KEY (created_by_user_id) REFERENCES users(id);
`, cb);
};