mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	chore: ADD migration for DB new Index logins__email
This commit is contained in:
		
							parent
							
								
									06ff057082
								
							
						
					
					
						commit
						013e94e470
					
				
							
								
								
									
										16
									
								
								app/gen-server/migration/1727689195356-LoginsEmailIndex.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								app/gen-server/migration/1727689195356-LoginsEmailIndex.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| import {MigrationInterface, QueryRunner, TableIndex} from "typeorm"; | ||||
| 
 | ||||
| export class LoginsEmailsIndex1727689195356 implements MigrationInterface { | ||||
| 
 | ||||
|   public async up(queryRunner: QueryRunner): Promise<any> { | ||||
|     await queryRunner.createIndex("logins", new TableIndex({ | ||||
|       name: "logins__email", | ||||
|       columnNames: ["email"] | ||||
|     })); | ||||
|   } | ||||
| 
 | ||||
|   public async down(queryRunner: QueryRunner): Promise<any> { | ||||
|     await queryRunner.dropIndex("logins", "logins__email"); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user