From c9039fb350d5b6bdea703988fcd730f688367dc6 Mon Sep 17 00:00:00 2001 From: Felipe Barreta Date: Wed, 11 Dec 2024 14:57:52 -0800 Subject: [PATCH] ALCS-2099 Delete Migration and create a new one --- ...s.ts => 1733957637664-migrate_components_to_decisions.ts} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename services/apps/alcs/src/providers/typeorm/migrations/{1732917418215-migrate_components_to_decisions.ts => 1733957637664-migrate_components_to_decisions.ts} (96%) diff --git a/services/apps/alcs/src/providers/typeorm/migrations/1732917418215-migrate_components_to_decisions.ts b/services/apps/alcs/src/providers/typeorm/migrations/1733957637664-migrate_components_to_decisions.ts similarity index 96% rename from services/apps/alcs/src/providers/typeorm/migrations/1732917418215-migrate_components_to_decisions.ts rename to services/apps/alcs/src/providers/typeorm/migrations/1733957637664-migrate_components_to_decisions.ts index 65bdeda81..3280b3827 100644 --- a/services/apps/alcs/src/providers/typeorm/migrations/1732917418215-migrate_components_to_decisions.ts +++ b/services/apps/alcs/src/providers/typeorm/migrations/1733957637664-migrate_components_to_decisions.ts @@ -1,8 +1,10 @@ import { MigrationInterface, QueryRunner } from "typeorm"; -export class MigrateComponentsToDecisions1732917418215 implements MigrationInterface { +export class MigrateComponentsToDecisions1733957637664 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`DELETE FROM alcs.migrations + WHERE name = 'MigrateComponentsToDecisions1732917418215';`); await queryRunner.query(` WITH selected_components AS ( @@ -108,6 +110,7 @@ export class MigrateComponentsToDecisions1732917418215 implements MigrationInter } public async down(queryRunner: QueryRunner): Promise { + // N/A } }