1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

chore: add migration for adding created_by to feature_tag table (#5590)

## About the changes

Contains the migration that adds the column created_by to `feature_tag`
This commit is contained in:
David Leek 2023-12-11 14:57:40 +01:00 committed by GitHub
parent 27732274a3
commit 0f1b89b259
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 feature_tag ADD COLUMN IF NOT EXISTS created_by INTEGER;
`,
callback,
);
};
exports.down = function (db, callback) {
db.runSql(
`
ALTER TABLE feature_tag DROP COLUMN IF EXISTS created_by;
`,
callback,
);
};