mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
chore: add migration for adding created_by to feature_strategies table (#5589)
## About the changes Contains the migration that adds the column created_by to `feature_strategies`
This commit is contained in:
parent
9dbb7ea9a9
commit
27732274a3
@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
exports.up = function (db, callback) {
|
||||
db.runSql(
|
||||
`
|
||||
ALTER TABLE feature_strategies ADD COLUMN IF NOT EXISTS created_by INTEGER;
|
||||
`,
|
||||
callback,
|
||||
);
|
||||
};
|
||||
|
||||
exports.down = function (db, callback) {
|
||||
db.runSql(
|
||||
`
|
||||
ALTER TABLE feature_strategies DROP COLUMN IF EXISTS created_by;
|
||||
`,
|
||||
callback,
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user