1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

feat: add status fields for feature lifecycle table (#7014)

This commit is contained in:
Jaanus Sellin 2024-05-09 09:39:01 +03:00 committed by GitHub
parent 0f65f8a943
commit 8ea034cc2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

View File

@ -10,6 +10,8 @@ import type { StageName } from '../../types';
type DBType = { type DBType = {
stage: StageName; stage: StageName;
created_at: string; created_at: string;
status?: string;
status_value?: string;
}; };
type DBProjectType = DBType & { type DBProjectType = DBType & {

View File

@ -0,0 +1,16 @@
exports.up = function (db, cb) {
db.runSql(`
ALTER TABLE feature_lifecycles ADD COLUMN IF NOT EXISTS status TEXT;
ALTER TABLE feature_lifecycles ADD COLUMN IF NOT EXISTS status_value TEXT;
`, cb);
};
exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE feature_lifecycles DROP COLUMN IF EXISTS status;
ALTER TABLE feature_lifecycles DROP COLUMN IF EXISTS status_value;
`,
cb,
);
};