mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									a3ddefaf6d
								
							
						
					
					
						commit
						8e08df5c19
					
				| @ -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"] | ||||
|   } | ||||
| } | ||||
|  | ||||
							
								
								
									
										10
									
								
								src/migrations/20240326122126-add-index-on-group-name.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/migrations/20240326122126-add-index-on-group-name.js
									
									
									
									
									
										Normal 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); | ||||
| }; | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user