import { MigrationInterface , QueryRunner } from 'typeorm' ; export class CreateTables1570200270081 implements MigrationInterface { public async up ( queryRunner ) { if ( process . env . BACKEND_ENV === 'prod' ) { if ( queryRunner . isTransactionActive ) { await queryRunner . commitTransaction ( ) ; } await queryRunner . connection . synchronize ( ) ; } } public async down ( queryRunner ) { } }