mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			527 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			527 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import {MigrationInterface, QueryRunner} from "typeorm";
 | 
						|
 | 
						|
export class logMessageLength1622681548499 implements MigrationInterface {
 | 
						|
	name = 'logMessageLength1622681548499';
 | 
						|
	public async up(queryRunner: QueryRunner): Promise<void> {
 | 
						|
		await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(2048)`, undefined);
 | 
						|
	}
 | 
						|
 | 
						|
	public async down(queryRunner: QueryRunner): Promise<void> {
 | 
						|
		await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(1024)`, undefined);
 | 
						|
	}
 | 
						|
}
 |