mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
feat: create initial stages for features (#6983)
We are getting questions from engineers, why I do not see lifecycle. The same will happen with our customers. Now customers will see lifecycle component unified across features.
This commit is contained in:
parent
a45be8d10c
commit
206d0190ff
19
src/migrations/20240506141345-lifecycle-initial-stage.js
Normal file
19
src/migrations/20240506141345-lifecycle-initial-stage.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
exports.up = function(db, cb) {
|
||||||
|
db.runSql(
|
||||||
|
`
|
||||||
|
INSERT INTO feature_lifecycles (feature, stage, created_at)
|
||||||
|
SELECT features.name, 'initial', features.created_at
|
||||||
|
FROM features
|
||||||
|
LEFT JOIN feature_lifecycles ON features.name = feature_lifecycles.feature
|
||||||
|
WHERE feature_lifecycles.feature IS NULL;
|
||||||
|
`,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.down = function(db, cb) {
|
||||||
|
db.runSql(
|
||||||
|
``,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user