1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: migration for features created by (#5593)

Contains the migration that adds the column created_by to `features`
This commit is contained in:
David Leek 2023-12-11 14:58:23 +01:00 committed by GitHub
parent 427abbd8d1
commit 5b6a26a828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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,
);
};