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