Skip to content

Commit

Permalink
update migration sql
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Dec 29, 2023
1 parent 133c372 commit c28685c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/migration/1697580470000-approvalSignup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export class ApprovalSignup1697580470000 {
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "approvalRequiredForSignup" boolean DEFAULT false NOT NULL`);
await queryRunner.query(`ALTER TABLE "user" ADD "approved" boolean DEFAULT false NOT NULL`);
//▼ 既存のユーザーについては全員Approveにする
await queryRunner.query(`UPDATE "user" SET "approved" = true`);
await queryRunner.query(`ALTER TABLE "user" ADD "signupReason" character varying(1000) NULL`);
await queryRunner.query(`ALTER TABLE "user_pending" ADD "reason" character varying(1000) NULL`);
}
Expand Down

0 comments on commit c28685c

Please sign in to comment.