import { MigrationInterface , QueryRunner } from 'typeorm' ; const schemaName = 'admin' ; export class CreateAdminSchema_1602337241496 implements MigrationInterface { public async up ( queryRunner ) { await queryRunner . createSchema ( schemaName , true ) ; } public async down ( queryRunner ) { await queryRunner . dropSchema ( schemaName , true , true ) ; } }