From 87f7b0849a6c30d88f90baa5747524cad0ef9ccb Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 26 Aug 2022 09:13:11 -0700 Subject: [PATCH] Added migration down for change exif file type --- .../1661528919411-ChangeExifFileSizeInByteToBigInt.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/libs/database/src/migrations/1661528919411-ChangeExifFileSizeInByteToBigInt.ts b/server/libs/database/src/migrations/1661528919411-ChangeExifFileSizeInByteToBigInt.ts index 19684bc8e7..da614e7f9c 100644 --- a/server/libs/database/src/migrations/1661528919411-ChangeExifFileSizeInByteToBigInt.ts +++ b/server/libs/database/src/migrations/1661528919411-ChangeExifFileSizeInByteToBigInt.ts @@ -10,5 +10,10 @@ export class ChangeExifFileSizeInByteToBigInt1661528919411 implements MigrationI `); } - public async down(queryRunner: QueryRunner): Promise {} + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + ALTER TABLE exif + ALTER COLUMN "fileSizeInByte" type integer using "fileSizeInByte"::integer; + `); + } }