summaryrefslogtreecommitdiff
path: root/migration/1604821689616-delete-auto-watch.ts
blob: e47a4cf1dbc885b97e64a06597dba09534b34e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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`);
    }

}