1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/migrations/20221011155007-add-user-groups-mappings.js

22 lines
394 B
JavaScript
Raw Normal View History

'use strict';
exports.up = function (db, cb) {
db.runSql(
`
ALTER TABLE groups
ADD COLUMN IF NOT EXISTS mappings_sso jsonb DEFAULT '[]'::jsonb
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE groups
DROP COLUMN IF EXISTS mappings_sso;
`,
cb,
);
};