mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-26 14:57:42 +00:00
13 lines
436 B
TypeScript
13 lines
436 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm"
|
|
|
|
export class AddPersonBirthDate1692112147855 implements MigrationInterface {
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "person" ADD "birthDate" date`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "person" DROP COLUMN "birthDate"`);
|
|
}
|
|
|
|
}
|