mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
24 lines
542 B
JavaScript
24 lines
542 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,
|
||
|
);
|
||
|
};
|