summaryrefslogtreecommitdiff
path: root/packages/backend/migration/1576869585998-ProxyRemoteFiles.js
blob: 192dbe3485bd0d7243785831588631aecc8d6d9c (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 ProxyRemoteFiles1576869585998 {
    constructor() {
        this.name = 'ProxyRemoteFiles1576869585998';
    }
    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "meta" ADD "proxyRemoteFiles" boolean NOT NULL DEFAULT false`, undefined);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "proxyRemoteFiles"`, undefined);
    }
}