1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/migrations/20210625102126-connect-default-project-to-global-environment.js

22 lines
411 B
JavaScript
Raw Normal View History

exports.up = function (db, cb) {
db.runSql(
`
INSERT INTO project_environments(project_id, environment_name) VALUES ('default', ':global:');
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
DELETE FROM project_environments WHERE project_id = 'default' AND environment_name = ':global:';
`,
cb,
);
};
exports._meta = {
version: 1,
};