diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-08-18 22:04:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-18 22:04:04 +0900 |
| commit | 881b914c6a7bdf73ed16194e71aa779b27de074e (patch) | |
| tree | 9915f6423c771ed4120bd7d5741780221b7a463c /migration | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | sharkey-881b914c6a7bdf73ed16194e71aa779b27de074e.tar.gz sharkey-881b914c6a7bdf73ed16194e71aa779b27de074e.tar.bz2 sharkey-881b914c6a7bdf73ed16194e71aa779b27de074e.zip | |
チャンネルを作成しているとアカウントを削除できないのを修正 (#7653)
* チャンネルを作成しているとアカウントを削除できないのを修正
* CHANGELOG
* nullable
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/1629288472000-fix-channel-userId.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/migration/1629288472000-fix-channel-userId.ts b/migration/1629288472000-fix-channel-userId.ts new file mode 100644 index 0000000000..cd8f81bb01 --- /dev/null +++ b/migration/1629288472000-fix-channel-userId.ts @@ -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;`); + } + +} |