From 96125673a62aa35fc63a5a04db47018cd5341d74 Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 17 Jul 2025 16:05:00 +0900 Subject: [PATCH] fix migration --- packages/backend/migration/1751848750315-RemoteSuspend.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/migration/1751848750315-RemoteSuspend.js b/packages/backend/migration/1751848750315-RemoteSuspend.js index 8edc0d88e6..efa7b83026 100644 --- a/packages/backend/migration/1751848750315-RemoteSuspend.js +++ b/packages/backend/migration/1751848750315-RemoteSuspend.js @@ -7,11 +7,13 @@ export class RemoteSuspend1751848750315 { async up(queryRunner) { await queryRunner.query(`ALTER TABLE "user" ADD "isRemoteSuspended" boolean NOT NULL DEFAULT false`); + await queryRunner.query(`COMMENT ON COLUMN "user"."isSuspended" IS 'Whether the User is suspended by the local moderators.'`); await queryRunner.query(`COMMENT ON COLUMN "user"."isRemoteSuspended" IS 'Whether the User is suspended by the remote moderators.'`); } async down(queryRunner) { await queryRunner.query(`COMMENT ON COLUMN "user"."isRemoteSuspended" IS 'Whether the User is suspended by the remote moderators.'`); + await queryRunner.query(`COMMENT ON COLUMN "user"."isSuspended" IS 'Whether the User is suspended.'`); await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "isRemoteSuspended"`); } }