diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-05-07 14:22:13 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-05-07 14:22:13 +0900 |
| commit | b60f9fbc0089ade0b9dce3902489917ca8a57d42 (patch) | |
| tree | 535037a7c4afd2a4d1d0240a9c2720b3c156848c /migration | |
| parent | 12.80.3 (diff) | |
| download | sharkey-b60f9fbc0089ade0b9dce3902489917ca8a57d42.tar.gz sharkey-b60f9fbc0089ade0b9dce3902489917ca8a57d42.tar.bz2 sharkey-b60f9fbc0089ade0b9dce3902489917ca8a57d42.zip | |
Improve ad
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/1620364649428-ad2.ts | 14 |
1 files changed, 14 insertions, 0 deletions
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<void> { + await queryRunner.query(`ALTER TABLE "ad" ADD "ratio" integer NOT NULL DEFAULT '1'`); + } + + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(`ALTER TABLE "ad" DROP COLUMN "ratio"`); + } + +} |