diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-08 16:49:23 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-08 16:49:23 +0900 |
| commit | 9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed (patch) | |
| tree | 9bae26e351d3cc849b8f38823a3907e9e6b87d13 /migration | |
| parent | Fix #6819 (diff) | |
| download | sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.tar.gz sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.tar.bz2 sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.zip | |
autoWatch機能を削除
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/1604821689616-delete-auto-watch.ts | 14 |
1 files changed, 14 insertions, 0 deletions
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<void> { + await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "autoWatch"`); + } + + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(`ALTER TABLE "user_profile" ADD "autoWatch" boolean NOT NULL DEFAULT false`); + } + +} |