mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
22 lines
671 B
TypeScript
22 lines
671 B
TypeScript
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
|
|
|
|
export class AddBannerImageToWhiteLabelling1778760592536 implements MigrationInterface {
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.addColumn(
|
|
'white_labelling',
|
|
new TableColumn({
|
|
name: 'banner_image',
|
|
type: 'varchar',
|
|
length: '1024',
|
|
isNullable: true,
|
|
default: null,
|
|
})
|
|
)
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.dropColumn('white_labelling', 'banner_image');
|
|
}
|
|
|
|
}
|