mirror of
https://github.com/immich-app/immich.git
synced 2025-09-29 15:31:13 -04:00
16 lines
721 B
TypeScript
16 lines
721 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddMorePermissionToSharedLink1673907194740 implements MigrationInterface {
|
|
name = 'AddMorePermissionToSharedLink1673907194740';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "shared_links" ADD "allowDownload" boolean NOT NULL DEFAULT true`);
|
|
await queryRunner.query(`ALTER TABLE "shared_links" ADD "showExif" boolean NOT NULL DEFAULT true`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "shared_links" DROP COLUMN "showExif"`);
|
|
await queryRunner.query(`ALTER TABLE "shared_links" DROP COLUMN "allowDownload"`);
|
|
}
|
|
}
|