1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/src/migrations/20210908100701-add-enabled-to-environments.js
Fredrik Strand Oseberg 26c9d53b89
feat: Move environments to enterprise (#935)
- Adding, updating and renaming environments are meant to be
  enterprise only features, as such, this PR moves these operations out
  of this server

- We still keep sortOrder updating, toggling on/off and getting one,
  getting all, so we can still work with environments in the OSS version
  as well.

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-09-13 15:57:38 +02:00

22 lines
331 B
JavaScript

exports.up = function (db, cb) {
db.runSql(
`
ALTER TABLE environments ADD COLUMN enabled BOOLEAN DEFAULT true;
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE environments DROP COLUMN enabled;
`,
cb,
);
};
exports._meta = {
version: 1,
};