mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
53f90d37c5
Adds a first iteration of feature flag naming patterns. Currently behind a flag. Signed-off-by: andreas-unleash <andreas@getunleash.ai> Co-authored-by: Thomas Heartman <thomas@getunleash.io> Co-authored-by: andreas-unleash <andreas@getunleash.ai> Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
24 lines
582 B
JavaScript
24 lines
582 B
JavaScript
'use strict';
|
|
|
|
exports.up = function (db, cb) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE project_settings
|
|
ADD COLUMN IF NOT EXISTS "feature_naming_pattern" text;
|
|
ALTER TABLE project_settings
|
|
ADD COLUMN IF NOT EXISTS "feature_naming_example" text;
|
|
`,
|
|
cb(),
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, cb) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE project_settings DROP COLUMN IF EXISTS "feature_naming_pattern";
|
|
ALTER TABLE project_settings DROP COLUMN IF EXISTS "feature_naming_example";
|
|
`,
|
|
cb,
|
|
);
|
|
};
|