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