summaryrefslogtreecommitdiff
path: root/packages/backend/migration/1743558299182-RoleCopyOnMoveAccount.js
blob: ff4f7a051b68bb300e1483cdf36c79c9a0940bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * SPDX-FileCopyrightText: syuilo and misskey-project
 * SPDX-License-Identifier: AGPL-3.0-only
 */

export class RoleCopyOnMoveAccount1743558299182 {
    name = 'RoleCopyOnMoveAccount1743558299182'

    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "role" ADD "preserveAssignmentOnMoveAccount" boolean NOT NULL DEFAULT false`);
    }

    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "role" DROP COLUMN "preserveAssignmentOnMoveAccount"`);
    }
}