チャンネルを作成しているとアカウントを削除できないのを修正 (#7653)

* チャンネルを作成しているとアカウントを削除できないのを修正

* CHANGELOG

* nullable
This commit is contained in:
MeiMei
2021-08-18 22:04:04 +09:00
committed by GitHub
parent 6a3a8ba4d0
commit 881b914c6a
4 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,14 @@
import {MigrationInterface, QueryRunner} from "typeorm";
export class fixChannelUserId1629288472000 implements MigrationInterface {
name = 'fixChannelUserId1629288472000'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "channel" ALTER COLUMN "userId" DROP NOT NULL;`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "channel" ALTER COLUMN "userId" SET NOT NULL;`);
}
}