firefish/packages/backend/src/migration/1582210532752-antenna-exclu...

17 lines
482 B
TypeScript

import type { MigrationInterface, QueryRunner } from "typeorm";
export class antennaExclude1582210532752 implements MigrationInterface {
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "antenna" ADD "excludeKeywords" jsonb NOT NULL DEFAULT '[]'`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "antenna" DROP COLUMN "excludeKeywords"`,
undefined,
);
}
}