diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-02-06 11:48:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-06 11:48:57 +0900 |
| commit | c88902e640e6ac7f7c9ea4b66f8a6005273636ab (patch) | |
| tree | 9c9db6aa532143d8629fba826c8de18f5ccc54fd /migration | |
| parent | Improve captcha (#7138) (diff) | |
| download | misskey-c88902e640e6ac7f7c9ea4b66f8a6005273636ab.tar.gz misskey-c88902e640e6ac7f7c9ea4b66f8a6005273636ab.tar.bz2 misskey-c88902e640e6ac7f7c9ea4b66f8a6005273636ab.zip | |
s3ForcePathStyle (#7122)
Co-authored-by: ybw2016v <dogcraft@126.com>
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/1611547387175-objectStorageS3ForcePathStyle.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/migration/1611547387175-objectStorageS3ForcePathStyle.ts b/migration/1611547387175-objectStorageS3ForcePathStyle.ts new file mode 100644 index 0000000000..1506a29007 --- /dev/null +++ b/migration/1611547387175-objectStorageS3ForcePathStyle.ts @@ -0,0 +1,14 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class objectStorageS3ForcePathStyle1611547387175 implements MigrationInterface { + name = 'objectStorageS3ForcePathStyle1611547387175' + + public async up(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(`ALTER TABLE "meta" ADD "objectStorageS3ForcePathStyle" boolean NOT NULL DEFAULT true`); + } + + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "objectStorageS3ForcePathStyle"`); + } + +} |