mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
14 lines
436 B
TypeScript
14 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"`);
|
|
}
|
|
|
|
}
|