import { MigrationInterface , QueryRunner } from 'typeorm' ; export class CourseTaken1608148654499 implements MigrationInterface { name = 'CourseTaken1608148654499' ; public async up ( queryRunner ) { await queryRunner . query ( 'ALTER TABLE `course_taken` DROP COLUMN `challenge`' ) ; await queryRunner . query ( 'ALTER TABLE `course_taken` ADD `challenge` varchar(500) NULL' ) ; } public async down ( queryRunner ) { await queryRunner . query ( 'ALTER TABLE `course_taken` DROP COLUMN `challenge`' ) ; await queryRunner . query ( 'ALTER TABLE `course_taken` ADD `challenge` varchar(255) NULL' ) ; } }