mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
45c6464587
* feat: add metadata to api_keys * fix: default to empty object for metadata Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
13 lines
281 B
JavaScript
13 lines
281 B
JavaScript
'use strict';
|
|
|
|
exports.up = function (db, cb) {
|
|
db.runSql(
|
|
`ALTER TABLE api_tokens ADD COLUMN metadata JSONB NOT NULL DEFAULT '{}'::jsonb;`,
|
|
cb,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, cb) {
|
|
db.runSql('ALTER TABLE api_tokens DROP COLUMN metadata;', cb);
|
|
};
|