mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 17:24:56 +03:00
15 lines
510 B
TypeScript
15 lines
510 B
TypeScript
|
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||
|
|
|
||
|
|
export class RemoveIsReadOnly1714698592332 implements MigrationInterface {
|
||
|
|
name = 'RemoveIsReadOnly1714698592332'
|
||
|
|
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.query(`ALTER TABLE "assets" DROP COLUMN "isReadOnly"`);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.query(`ALTER TABLE "assets" ADD "isReadOnly" boolean NOT NULL DEFAULT false`);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|