import { MigrationInterface , QueryRunner , TableColumn } from 'typeorm' ; export default class AddAvatarFieldToUsers1587084759632 implements MigrationInterface { public async up ( queryRunner ) { await queryRunner . addColumn ( 'users' , new TableColumn ( { name : 'avatar' , type : 'varchar' , isNullable : true , } ) ) ; } public async down ( queryRunner ) { await queryRunner . dropColumn ( 'users' , 'avatar' ) ; } }