summaryrefslogtreecommitdiff
path: root/packages/backend/migration/1673575973645-MetaClean.js
blob: 684d62e8e98de2586e53dd2f8fcbd41dbcb837b3 (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 MetaClean1673575973645 {
    name = 'MetaClean1673575973645'

    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "remoteDriveCapacityMb"`);
    }

    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "meta" ADD "remoteDriveCapacityMb" integer NOT NULL DEFAULT '32'`);
    }
}