mirror of
https://github.com/immich-app/immich.git
synced 2025-10-27 00:32:32 -04:00
15 lines
495 B
TypeScript
15 lines
495 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddSidecarFile1684273840676 implements MigrationInterface {
|
|
name = 'AddSidecarFile1684273840676'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "assets" ADD "sidecarPath" character varying`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "assets" DROP COLUMN "sidecarPath"`);
|
|
}
|
|
|
|
}
|