1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/src/migrations/20240326122126-add-index-on-group-name.js
Christopher Kolstad 8e08df5c19
feat: add index on group name (#6696)
As the title says, adds an index on the group name. Scim (in particular
Azure) uses group names to find correct group to sync.
2024-03-26 14:48:05 +01:00

11 lines
250 B
JavaScript

exports.up = function (db, cb) {
db.runSql(
`CREATE INDEX IF NOT EXISTS groups_group_name_idx ON groups(name)`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(`DROP INDEX IF EXISTS groups_group_name_idx`, cb);
};