import { MigrationInterface , QueryRunner } from 'typeorm' ; import * as config from '../../../../config' ; export class ChangeDataSize1615306975123 implements MigrationInterface { name = 'ChangeDataSize1615306975123' ; async up ( queryRunner ) { const tablePrefix = config . get ( 'database.tablePrefix' ) ; await queryRunner . query ( 'ALTER TABLE `' + tablePrefix + 'execution_entity` MODIFY COLUMN `data` MEDIUMTEXT NOT NULL' ) ; } async down ( queryRunner ) { const tablePrefix = config . get ( 'database.tablePrefix' ) ; await queryRunner . query ( 'ALTER TABLE `' + tablePrefix + 'execution_entity` MODIFY COLUMN `data` TEXT NOT NULL' ) ; } }