summaryrefslogtreecommitdiff
path: root/packages/backend/migration/1673522856499-RoleIroiro.js
blob: a1e64d49fe781def7443771144cfe9ffab0bfa00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export class RoleIroiro1673522856499 {
    name = 'RoleIroiro1673522856499'

    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "isSilenced"`);
        await queryRunner.query(`ALTER TABLE "role" ADD "canEditMembersByModerator" boolean NOT NULL DEFAULT false`);
    }

    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "role" DROP COLUMN "canEditMembersByModerator"`);
        await queryRunner.query(`ALTER TABLE "user" ADD "isSilenced" boolean NOT NULL DEFAULT false`);
    }
}