1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-27 02:12:34 +01:00
immich/server/src/migrations/1690469489288-Panoramas.ts
2024-03-20 21:02:51 +00:00

13 lines
469 B
TypeScript

import { MigrationInterface, QueryRunner } from 'typeorm';
export class Panoramas1690217088596 implements MigrationInterface {
name = 'Panoramas1690217088596';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "exif" ADD "projectionType" character varying`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "exif" DROP COLUMN "projectionType"`);
}
}