UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

15 lines 544 B
"use strict"; exports.up = function (db, cb) { db.runSql(` delete from group_role where project not in (select id from projects); ALTER TABLE group_role ADD CONSTRAINT fk_group_role_project FOREIGN KEY(project) REFERENCES projects(id) ON DELETE CASCADE; `, cb); }; exports.down = function (db, cb) { db.runSql(` ALTER TABLE group_role DROP CONSTRAINT fk_group_role_project; `, cb); }; //# sourceMappingURL=20220808110415-add-projects-foreign-key.js.map