1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-23 00:16:25 +01:00

feat: add index on group name ()

As the title says, adds an index on the group name. Scim (in particular
Azure) uses group names to find correct group to sync.
This commit is contained in:
Christopher Kolstad 2024-03-26 14:48:05 +01:00 committed by GitHub
parent a3ddefaf6d
commit 8e08df5c19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View File

@ -217,8 +217,8 @@
"tough-cookie": "4.1.3"
},
"lint-staged": {
"*.{js,ts}": ["biome check --apply"],
"*.{jsx,tsx}": ["biome check --apply"],
"*.{js,ts}": ["biome check --apply --no-errors-on-unmatched"],
"*.{jsx,tsx}": ["biome check --apply --no-errors-on-unmatched"],
"*.json": ["biome format --write --no-errors-on-unmatched"]
}
}

View File

@ -0,0 +1,10 @@
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);
};