2022-08-26 09:07:59 -07:00
|
|
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
2022-08-21 06:31:37 +07:00
|
|
|
|
|
|
|
|
export class AddCaption1661011331242 implements MigrationInterface {
|
2022-08-26 09:07:59 -07:00
|
|
|
name = 'AddCaption1661011331242';
|
2022-08-21 06:31:37 +07:00
|
|
|
|
2022-08-26 09:07:59 -07:00
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
|
|
|
await queryRunner.query(`ALTER TABLE "exif" ADD "description" text DEFAULT ''`);
|
|
|
|
|
await queryRunner.query(`ALTER TABLE "exif" ADD "fps" double precision`);
|
|
|
|
|
}
|
2022-08-21 06:31:37 +07:00
|
|
|
|
2022-08-26 09:07:59 -07:00
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
|
|
|
await queryRunner.query(`ALTER TABLE "exif" DROP COLUMN "fps"`);
|
|
|
|
|
await queryRunner.query(`ALTER TABLE "exif" DROP COLUMN "description"`);
|
|
|
|
|
}
|
2022-08-21 06:31:37 +07:00
|
|
|
}
|