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"`); } }