1
0
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:
David Leek 2023-12-11 13:26:56 +01:00
parent 1cbef2218a
commit 1b9079ff27
No known key found for this signature in database
GPG Key ID: 515EE0F1BB6D0BE1

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