mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			540 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			540 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { MigrationInterface, QueryRunner } from 'typeorm';
 | |
| 
 | |
| export class RenameIsFirstLoggedInColumn1656338626260 implements MigrationInterface {
 | |
|   public async up(queryRunner: QueryRunner): Promise<void> {
 | |
|     await queryRunner.query(`
 | |
|     ALTER TABLE users
 | |
|          RENAME COLUMN "isFirstLoggedIn" to "shouldChangePassword";
 | |
|     `);
 | |
|   }
 | |
| 
 | |
|   public async down(queryRunner: QueryRunner): Promise<void> {
 | |
|     await queryRunner.query(`
 | |
|       ALTER TABLE users
 | |
|           RENAME COLUMN "shouldChangePassword" to "isFirstLoggedIn";
 | |
|     `);
 | |
|   }
 | |
| }
 |