mirror of
https://github.com/immich-app/immich.git
synced 2025-11-09 00:03:09 -05:00
* refactor: remove isReadOnly and isExternal usages * chore: open api * fix: linting * remove mobile isReadOnly dependency --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
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`);
|
|
}
|
|
|
|
}
|