1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src/migrations/20210504101429-deprecate-strategies.js

24 lines
544 B
JavaScript
Raw Normal View History

exports.up = function (db, cb) {
2021-05-04 21:42:58 +02:00
db.runSql(
`
UPDATE strategies
SET deprecated = true, built_in = 0
WHERE name = 'gradualRolloutSessionId' OR name = 'gradualRolloutUserId'
OR name = 'gradualRolloutRandom'
`,
cb,
);
};
exports.down = function (db, cb) {
2021-05-04 21:42:58 +02:00
db.runSql(
`
UPDATE strategies
SET deprecated = false, built_in = 1
WHERE name = 'gradualRolloutSessionId' OR name = 'gradualRolloutUserId'
OR name = 'gradualRolloutRandom'
`,
cb,
);
};