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
Nuno Góis a3bf564100
feat: add SSO mappings to groups (#2175)
* feat: add SSO mappings to groups

* add feature flag to conditionally render

* fix EditGroupUsers

* fix: update snap
2022-10-13 11:34:47 +01:00

22 lines
394 B
JavaScript

'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,
);
};