Skip to content

Commit

Permalink
fix migration table names for qfround networks
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Sep 14, 2023
1 parent c851c2a commit 7031640
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class AddEligibleNetworksToQfRoundEntity1694295208252
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "qf_round"
ALTER TABLE public.qf_round
ADD COLUMN IF NOT EXIST "eligibleNetworks" integer array DEFAULT ARRAY[]::integer[]
`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class AddEligibleNetworksToPreviousQfRounds1694635872128
// Update the "qf_round" table with the new eligibleNetworks values
await queryRunner.query(
`
UPDATE "qf_round"
UPDATE public.qf_round
SET eligibleNetworks = $1
`,
[eligibleNetworks],
Expand All @@ -25,7 +25,7 @@ export class AddEligibleNetworksToPreviousQfRounds1694635872128

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
UPDATE "qf_round"
UPDATE public.qf_round
SET eligibleNetworks = '{}'
`);
}
Expand Down

0 comments on commit 7031640

Please sign in to comment.