Skip to content

Commit 6bc43e4

Browse files
authored
Merge pull request #2010 from bcgov/bugfix/ALCS-2099-fix-migration-order
ALCS-2099 Delete Migration and create a new one
2 parents 6f7f6ec + c9039fb commit 6bc43e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

services/apps/alcs/src/providers/typeorm/migrations/1732917418215-migrate_components_to_decisions.ts services/apps/alcs/src/providers/typeorm/migrations/1733957637664-migrate_components_to_decisions.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { MigrationInterface, QueryRunner } from "typeorm";
22

3-
export class MigrateComponentsToDecisions1732917418215 implements MigrationInterface {
3+
export class MigrateComponentsToDecisions1733957637664 implements MigrationInterface {
44

55
public async up(queryRunner: QueryRunner): Promise<void> {
6+
await queryRunner.query(`DELETE FROM alcs.migrations
7+
WHERE name = 'MigrateComponentsToDecisions1732917418215';`);
68
await queryRunner.query(`
79
WITH selected_components AS
810
(
@@ -108,6 +110,7 @@ export class MigrateComponentsToDecisions1732917418215 implements MigrationInter
108110
}
109111

110112
public async down(queryRunner: QueryRunner): Promise<void> {
113+
// N/A
111114
}
112115

113116
}

0 commit comments

Comments
 (0)