forked from mirrors/misskey
* wip
* Update config.ts
* wip
* convertは元ファイルを変更するようなニュアンスを若干感じるのでcompileに改名
* wip
* Update package.json
* Revert "Update package.json"
This reverts commit e5c2802316.
* wip
* wip
* 謎
* clean up
* wip
* wip
* Revert "wip"
This reverts commit 3aa25ac7cf337d57412308e63d8f54e2536b0f7f.
* wip
* wip
* Update dummy.yml
* wip
* Update compile_config.js
* Update compile_config.js
* wip
* Revert "wip"
This reverts commit fd78e097c65f747962e7a411938a0e67538ed347.
* Update dummy.yml
* Update compile_config.js
23 lines
961 B
JavaScript
23 lines
961 B
JavaScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
|
|
export class MigrateSomeConfigFileSettingsToMeta1746949539915 {
|
|
name = 'MigrateSomeConfigFileSettingsToMeta1746949539915'
|
|
|
|
async up(queryRunner) {
|
|
// $1 cannot be used in ALTER TABLE queries
|
|
await queryRunner.query(`ALTER TABLE "meta" ADD "proxyRemoteFiles" boolean NOT NULL DEFAULT TRUE`);
|
|
await queryRunner.query(`ALTER TABLE "meta" ADD "signToActivityPubGet" boolean NOT NULL DEFAULT TRUE`);
|
|
await queryRunner.query(`ALTER TABLE "meta" ADD "allowExternalApRedirect" boolean NOT NULL DEFAULT TRUE`);
|
|
}
|
|
|
|
async down(queryRunner) {
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "allowExternalApRedirect"`);
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "signToActivityPubGet"`);
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "proxyRemoteFiles"`);
|
|
}
|
|
}
|