diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-12-31 17:23:47 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-31 17:23:47 +0900 |
| commit | b0bb5d8dfcf06e1df2a51d3e541894a7fbede6a2 (patch) | |
| tree | c16f145b58e8b1e10882527c8c184e74d2b62170 /migration | |
| parent | Update README.md [AUTOGEN] (#5664) (diff) | |
| download | sharkey-b0bb5d8dfcf06e1df2a51d3e541894a7fbede6a2.tar.gz sharkey-b0bb5d8dfcf06e1df2a51d3e541894a7fbede6a2.tar.bz2 sharkey-b0bb5d8dfcf06e1df2a51d3e541894a7fbede6a2.zip | |
期限切れ/未保存リモートファイルのローカルプロキシ (#5655)
* Media Proxy を実装
* サンプルを追加
* https://github.com/syuilo/misskey/pull/5649#discussion_r359967471 の修正
* https://github.com/syuilo/misskey/pull/5649#discussion_r359967966 の修正
* https://github.com/syuilo/misskey/pull/5649#discussion_r359968219 の修正
* 期限切れ/未保存リモートファイルのローカルプロキシ
* 設定
* 説明
* comment out
* fix
Co-authored-by: 和風ドレッシング <37681609+CookieRamen@users.noreply.github.com>
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/1576869585998-ProxyRemoteFiles.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/migration/1576869585998-ProxyRemoteFiles.ts b/migration/1576869585998-ProxyRemoteFiles.ts new file mode 100644 index 0000000000..1d15370bb6 --- /dev/null +++ b/migration/1576869585998-ProxyRemoteFiles.ts @@ -0,0 +1,14 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class ProxyRemoteFiles1576869585998 implements MigrationInterface { + name = 'ProxyRemoteFiles1576869585998' + + public async up(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query(`ALTER TABLE "meta" ADD "proxyRemoteFiles" boolean NOT NULL DEFAULT false`, undefined); + } + + public async down(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "proxyRemoteFiles"`, undefined); + } + +} |