summaryrefslogtreecommitdiff
path: root/migration/1611547387175-objectStorageS3ForcePathStyle.ts
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2021-02-06 11:48:57 +0900
committerGitHub <noreply@github.com>2021-02-06 11:48:57 +0900
commitc88902e640e6ac7f7c9ea4b66f8a6005273636ab (patch)
tree9c9db6aa532143d8629fba826c8de18f5ccc54fd /migration/1611547387175-objectStorageS3ForcePathStyle.ts
parentImprove captcha (#7138) (diff)
downloadmisskey-c88902e640e6ac7f7c9ea4b66f8a6005273636ab.tar.gz
misskey-c88902e640e6ac7f7c9ea4b66f8a6005273636ab.tar.bz2
misskey-c88902e640e6ac7f7c9ea4b66f8a6005273636ab.zip
s3ForcePathStyle (#7122)
Co-authored-by: ybw2016v <dogcraft@126.com>
Diffstat (limited to 'migration/1611547387175-objectStorageS3ForcePathStyle.ts')
-rw-r--r--migration/1611547387175-objectStorageS3ForcePathStyle.ts14
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"`);
+ }
+
+}