mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-27 00:19:39 +01:00
24 lines
544 B
JavaScript
24 lines
544 B
JavaScript
exports.up = function (db, cb) {
|
|
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) {
|
|
db.runSql(
|
|
`
|
|
UPDATE strategies
|
|
SET deprecated = false, built_in = 1
|
|
WHERE name = 'gradualRolloutSessionId' OR name = 'gradualRolloutUserId'
|
|
OR name = 'gradualRolloutRandom'
|
|
`,
|
|
cb,
|
|
);
|
|
};
|