1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

Added migration down for change exif file type

This commit is contained in:
Alex 2022-08-26 09:13:11 -07:00
parent 4596a8ee01
commit 87f7b0849a
No known key found for this signature in database
GPG Key ID: 53CD082B3A5E1082

View File

@ -10,5 +10,10 @@ export class ChangeExifFileSizeInByteToBigInt1661528919411 implements MigrationI
`);
}
public async down(queryRunner: QueryRunner): Promise<void> {}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE exif
ALTER COLUMN "fileSizeInByte" type integer using "fileSizeInByte"::integer;
`);
}
}