parent
0e45f10d99
commit
c88902e640
6 changed files with 36 additions and 2 deletions
14
migration/1611547387175-objectStorageS3ForcePathStyle.ts
Normal file
14
migration/1611547387175-objectStorageS3ForcePathStyle.ts
Normal file
|
@ -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"`);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue