mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
chore: add migration for adding created_by to features table
This commit is contained in:
parent
1cbef2218a
commit
1b9079ff27
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