mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
14 lines
517 B
TypeScript
14 lines
517 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AscendingOrderAlbum1710182081326 implements MigrationInterface {
|
|
name = 'AscendingOrderAlbum1710182081326'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "albums" ADD "order" character varying NOT NULL DEFAULT 'desc'`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "albums" DROP COLUMN "order"`);
|
|
}
|
|
|
|
}
|