1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/migrations/20231211122426-feature-strategies-created-by.js

20 lines
381 B
JavaScript
Raw Normal View History

'use strict';
exports.up = function (db, callback) {
db.runSql(
`
ALTER TABLE feature_strategies ADD COLUMN IF NOT EXISTS created_by INTEGER;
`,
callback,
);
};
exports.down = function (db, callback) {
db.runSql(
`
ALTER TABLE feature_strategies DROP COLUMN IF EXISTS created_by;
`,
callback,
);
};