mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
24 lines
482 B
JavaScript
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,
|
|
);
|
|
};
|