Skip to content

Commit

Permalink
Merge pull request #2010 from bcgov/bugfix/ALCS-2099-fix-migration-order
Browse files Browse the repository at this point in the history
ALCS-2099 Delete Migration and create a new one
  • Loading branch information
fbarreta authored Dec 11, 2024
2 parents 6f7f6ec + c9039fb commit 6bc43e4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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<void> {
await queryRunner.query(`DELETE FROM alcs.migrations
WHERE name = 'MigrateComponentsToDecisions1732917418215';`);
await queryRunner.query(`
WITH selected_components AS
(
Expand Down Expand Up @@ -108,6 +110,7 @@ export class MigrateComponentsToDecisions1732917418215 implements MigrationInter
}

public async down(queryRunner: QueryRunner): Promise<void> {
// N/A
}

}

0 comments on commit 6bc43e4

Please sign in to comment.