summaryrefslogtreecommitdiff
path: root/migration/1582210532752-antenna-exclude.ts
blob: bff47a3ec6e16461a4777e4d1b756fc63c6cf939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {MigrationInterface, QueryRunner} from "typeorm";

export class antennaExclude1582210532752 implements MigrationInterface {
    name = 'antennaExclude1582210532752'

    public async up(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`ALTER TABLE "antenna" ADD "excludeKeywords" jsonb NOT NULL DEFAULT '[]'`, undefined);
    }

    public async down(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`ALTER TABLE "antenna" DROP COLUMN "excludeKeywords"`, undefined);
    }

}