Skip to content

Commit

Permalink
chore: add migration for release-plans-definitions that removes fk on…
Browse files Browse the repository at this point in the history
… users(id)
  • Loading branch information
daveleek committed Oct 31, 2024
1 parent b8a4fbd commit 61ff3b2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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);
};

0 comments on commit 61ff3b2

Please sign in to comment.