hippofish/migration/1611547387175-objectStorageS3ForcePathStyle.ts
MeiMei c88902e640
s3ForcePathStyle (#7122)
Co-authored-by: ybw2016v <dogcraft@126.com>
2021-02-06 11:48:57 +09:00

14 lines
567 B
TypeScript

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"`);
}
}