diff --git a/src/util/migration/postgres/1772404321401-ChannelStatus.ts b/src/util/migration/postgres/1772404321401-ChannelStatus.ts new file mode 100644 index 0000000..cc669a6 --- /dev/null +++ b/src/util/migration/postgres/1772404321401-ChannelStatus.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class ChannelStatus1772404321401 implements MigrationInterface { + name = "ChannelStatus1772404321401"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "channels" ADD "status" text NULL;`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "channels" DROP COLUMN "status"`); + } +}