mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
16 lines
567 B
TypeScript
16 lines
567 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
export class objectStorageS3ForcePathStyle1611547387175 implements MigrationInterface {
|
|
constructor() {
|
|
this.name = "objectStorageS3ForcePathStyle1611547387175";
|
|
}
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "meta" ADD "objectStorageS3ForcePathStyle" boolean NOT NULL DEFAULT true`,
|
|
);
|
|
}
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "meta" DROP COLUMN "objectStorageS3ForcePathStyle"`,
|
|
);
|
|
}
|
|
}
|