import { MigrationInterface, QueryRunner } from 'typeorm'; export class AddIndexToAggregateProduct1667265823062 implements MigrationInterface { name = 'AddIndexToAggregateProduct1667265823062'; public async up(queryRunner: QueryRunner): Promise { await queryRunner.commitTransaction(); await queryRunner.query( `CREATE INDEX CONCURRENTLY "category_index" ON "aggregate_products" ("category")` ); await queryRunner.startTransaction(); } public async down(): Promise { // no-op } }