1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/migrations/20231211134633-add-created-by-to-apitokens.js
Christopher Kolstad 18ea7349c6
feat: add created_by to api_tokens table (#5596)
Adds a migration for adding created_by column to the api_tokens table.
2023-12-11 15:41:36 +01:00

7 lines
211 B
JavaScript

exports.up = function(db, cb) {
db.runSql(`ALTER TABLE api_tokens ADD COLUMN created_by INTEGER`, cb);
};
exports.down = function(db, cb) {
db.runSql(`ALTER TABLE api_tokens DROP COLUMN created_by`, cb);
};