Skip to content

Commit

Permalink
マイグレーションが失敗することがあるのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Feb 23, 2023
1 parent 28bea88 commit ce5c78d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/backend/migration/1676434944993-drop-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export class dropGroup1676434944993 {
name = 'dropGroup1676434944993'

async up(queryRunner) {
await queryRunner.query(`TRUNCATE TABLE "notification"`, undefined);
await queryRunner.query(`ALTER TABLE "antenna" DROP CONSTRAINT "FK_ccbf5a8c0be4511133dcc50ddeb"`);
await queryRunner.query(`ALTER TABLE "notification" DROP CONSTRAINT "FK_8fe87814e978053a53b1beb7e98"`);
await queryRunner.query(`ALTER TABLE "antenna" DROP COLUMN "userGroupJoiningId"`);
Expand Down

1 comment on commit ce5c78d

@tribela
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😵‍💫

Please sign in to comment.