1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/migrations/20210928080601-add-development-and-production-environments.js
2021-10-29 13:02:05 +02:00

24 lines
482 B
JavaScript

'use strict';
exports.up = function (db, cb) {
db.runSql(
`
INSERT INTO environments(name, type, enabled, sort_order)
VALUES ('development', 'development', true, 100),
('production', 'production', true, 200);
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
DELETE
FROM environments
WHERE name IN ('development', 'production');
`,
cb,
);
};