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