import { MigrationInterface , QueryRunner , TableColumn } from "typeorm" ; export class addOpeningHoursFieldToOrphanages1601408180275 implements MigrationInterface { public async up ( queryRunner ) { await queryRunner . addColumn ( 'orphanages' , new TableColumn ( { name : 'opening_hours' , type : 'varchar' } ) ) ; } public async down ( queryRunner ) { await queryRunner . dropColumn ( 'orphanages' , 'opening_hours' ) ; } }