mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: default to empty object for metadata
This commit is contained in:
parent
f05be210dd
commit
083686fe95
@ -1,7 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
exports.up = function (db, cb) {
|
exports.up = function (db, cb) {
|
||||||
db.runSql(`ALTER TABLE api_tokens ADD COLUMN metadata JSONB;`, cb);
|
db.runSql(
|
||||||
|
`ALTER TABLE api_tokens ADD COLUMN metadata JSONB NOT NULL DEFAULT '{}'::jsonb;`,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.down = function (db, cb) {
|
exports.down = function (db, cb) {
|
||||||
|
Loading…
Reference in New Issue
Block a user