mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
8e08df5c19
As the title says, adds an index on the group name. Scim (in particular Azure) uses group names to find correct group to sync.
11 lines
250 B
JavaScript
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);
|
|
};
|