cherrypick/packages/backend/migration/1701407688151-privateInstance.js
2023-12-01 14:26:18 +09:00

17 lines
453 B
JavaScript

/*
* SPDX-FileCopyrightText: syuilo and other misskey, cherrypick contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class privateInstance1701407688151 {
name = 'privateInstance1701407688151'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "privateInstance" boolean NOT NULL DEFAULT false`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "privateInstance"`);
}
}