unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
14 lines • 1.03 kB
JavaScript
'use strict';
exports.up = function (db, cb) {
db.runSql(`
ALTER TABLE strategies ADD COLUMN display_name text;
UPDATE strategies SET display_name = 'Standard', description = 'The standard strategy is strictly on / off for your entire userbase.' WHERE name = 'default';
UPDATE strategies SET display_name = 'Gradual rollout', description = 'Roll out to a percentage of your userbase, and ensure that the experience is the same for the user on each visit.' WHERE name = 'flexibleRollout';
UPDATE strategies SET display_name = 'IPs', description = 'Enable the feature for a specific set of IP addresses.' WHERE name = 'remoteAddress';
UPDATE strategies SET display_name = 'Hosts', description = 'Enable the feature for a specific set of hostnames.' WHERE name = 'applicationHostname';
`, cb);
};
exports.down = function (db, cb) {
db.runSql('ALTER TABLE strategies DROP COLUMN display_name;', cb);
};
//# sourceMappingURL=20210421135405-add-display-name-and-update-description-for-strategies.js.map