mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
chore: migrate database files (#8126)
This commit is contained in:
18
server/src/migrations/1694750975773-AddExifColorSpace.ts
Normal file
18
server/src/migrations/1694750975773-AddExifColorSpace.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddExifColorSpace1694750975773 implements MigrationInterface {
|
||||
name = 'AddExifColorSpace1694750975773'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "exif" ADD "profileDescription" character varying`);
|
||||
await queryRunner.query(`ALTER TABLE "exif" ADD "colorspace" character varying`);
|
||||
await queryRunner.query(`ALTER TABLE "exif" ADD "bitsPerSample" integer`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "exif" DROP COLUMN "bitsPerSample"`);
|
||||
await queryRunner.query(`ALTER TABLE "exif" DROP COLUMN "colorspace"`);
|
||||
await queryRunner.query(`ALTER TABLE "exif" DROP COLUMN "profileDescription"`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user