UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

17 lines 581 B
'use strict'; exports.up = function (db, cb) { db.runSql(`SELECT count(*) as count FROM events;`, (err, results) => { if (Number(results.rows[0].count) === 4) { // If there are exactly 4 events, it means this is a new install db.runSql(`DELETE FROM environments WHERE name = 'default';`, cb); } else { // If there are not exactly 4 events, do nothing cb(); } }); }; exports.down = function (db, cb) { cb(); }; //# sourceMappingURL=20250604110546-remove-default-env-from-new-installs.js.map