feat: チャンネルの削除

Resolve #7171
Resolve #9935
This commit is contained in:
syuilo 2023-05-06 08:15:17 +09:00
parent 3a105024c7
commit 5dfbce7571
13 changed files with 60 additions and 4 deletions

View file

@ -0,0 +1,13 @@
export class ChannelArchive1683328299359 {
name = 'ChannelArchive1683328299359'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "channel" ADD "isArchived" boolean NOT NULL DEFAULT false`);
await queryRunner.query(`CREATE INDEX "IDX_cc7c72974f1b2f385a8921f094" ON "channel" ("isArchived") `);
}
async down(queryRunner) {
await queryRunner.query(`DROP INDEX "public"."IDX_cc7c72974f1b2f385a8921f094"`);
await queryRunner.query(`ALTER TABLE "channel" DROP COLUMN "isArchived"`);
}
}