mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
* feat(server): add album description * chore: open api * fix: tests * show and edit description on the web * fix test * remove unused code * type event * format fix --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
14 lines
494 B
TypeScript
14 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"`);
|
|
}
|
|
}
|