mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
chore: add migration for adding created_by to feature_types table (#5591)
Contains the migration that adds the column created_by to `feature_types`
This commit is contained in:
parent
0f1b89b259
commit
427abbd8d1
19
src/migrations/20231211122322-feature-types-created-by.js
Normal file
19
src/migrations/20231211122322-feature-types-created-by.js
Normal file
@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
exports.up = function (db, callback) {
|
||||
db.runSql(
|
||||
`
|
||||
ALTER TABLE feature_types ADD COLUMN IF NOT EXISTS created_by INTEGER;
|
||||
`,
|
||||
callback,
|
||||
);
|
||||
};
|
||||
|
||||
exports.down = function (db, callback) {
|
||||
db.runSql(
|
||||
`
|
||||
ALTER TABLE feature_types DROP COLUMN IF EXISTS created_by;
|
||||
`,
|
||||
callback,
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user