mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			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"`);
 | 
						|
    }
 | 
						|
 | 
						|
}
 |