From b60f9fbc0089ade0b9dce3902489917ca8a57d42 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 7 May 2021 14:22:13 +0900 Subject: Improve ad --- migration/1620364649428-ad2.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 migration/1620364649428-ad2.ts (limited to 'migration') diff --git a/migration/1620364649428-ad2.ts b/migration/1620364649428-ad2.ts new file mode 100644 index 0000000000..a2d7f563c2 --- /dev/null +++ b/migration/1620364649428-ad2.ts @@ -0,0 +1,14 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class ad21620364649428 implements MigrationInterface { + name = 'ad21620364649428' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "ad" ADD "ratio" integer NOT NULL DEFAULT '1'`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "ad" DROP COLUMN "ratio"`); + } + +} -- cgit v1.2.3-freya