mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
fix(server): Handle exposure time correctly (#1432)
This commit is contained in:
@@ -72,8 +72,8 @@ export class ExifEntity {
|
||||
@Column({ type: 'integer', nullable: true })
|
||||
iso!: number | null;
|
||||
|
||||
@Column({ type: 'float', nullable: true })
|
||||
exposureTime!: number | null;
|
||||
@Column({ type: 'varchar', nullable: true })
|
||||
exposureTime!: string | null;
|
||||
|
||||
/* Video info */
|
||||
@Column({ type: 'float8', nullable: true })
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AlterExifExposureTimeToString1674757936889 implements MigrationInterface {
|
||||
name = 'AlterExifExposureTimeToString1674757936889'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "exif" DROP COLUMN "exposureTime"`);
|
||||
await queryRunner.query(`ALTER TABLE "exif" ADD "exposureTime" character varying`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "exif" DROP COLUMN "exposureTime"`);
|
||||
await queryRunner.query(`ALTER TABLE "exif" ADD "exposureTime" double precision`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user