import { MigrationInterface , QueryRunner } from 'typeorm' ; const extensionName = 'uuid-ossp' ; export class EnableUuidOssp_1597941181251 implements MigrationInterface { public async up ( queryRunner ) { await queryRunner . query ( `CREATE EXTENSION IF NOT EXISTS "${ extensionName }";` ) ; } public async down ( queryRunner ) { await queryRunner . query ( `DROP EXTENSION IF EXISTS "${ extensionName }";` ) ; } }