From 9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Nov 2020 16:49:23 +0900 Subject: autoWatch機能を削除 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- migration/1604821689616-delete-auto-watch.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 migration/1604821689616-delete-auto-watch.ts (limited to 'migration') diff --git a/migration/1604821689616-delete-auto-watch.ts b/migration/1604821689616-delete-auto-watch.ts new file mode 100644 index 0000000000..e47a4cf1db --- /dev/null +++ b/migration/1604821689616-delete-auto-watch.ts @@ -0,0 +1,14 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class deleteAutoWatch1604821689616 implements MigrationInterface { + name = 'deleteAutoWatch1604821689616' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "autoWatch"`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "user_profile" ADD "autoWatch" boolean NOT NULL DEFAULT false`); + } + +} -- cgit v1.2.3-freya