1
0
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:
Jaanus Sellin 2024-05-07 11:38:51 +03:00 committed by GitHub
parent a45be8d10c
commit 206d0190ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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,
);
};