mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
13 lines
494 B
TypeScript
13 lines
494 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddAlbumDescription1691209138541 implements MigrationInterface {
|
|
name = 'AddAlbumDescription1691209138541';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "albums" ADD "description" text NOT NULL DEFAULT ''`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "albums" DROP COLUMN "description"`);
|
|
}
|
|
}
|