Skip to content

Commit

Permalink
fix eligible donations migration
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Sep 14, 2023
1 parent c4f8012 commit c851c2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions migration/1694635872128-AddEligibleNetworksToPreviousQfRounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export class AddEligibleNetworksToPreviousQfRounds1694635872128
? [1, 3, 5, 100, 137, 10, 420, 56, 42220, 44787] // Include testnets for staging
: [1, 137, 56, 42220, 100, 10]; // Exclude testnets for non-staging

// Convert the eligibleNetworks array to a comma-separated string
const eligibleNetworksString = eligibleNetworks.join(', ');

// Update the "qf_round" table with the new eligibleNetworks values
await queryRunner.query(`
await queryRunner.query(
`
UPDATE "qf_round"
SET eligibleNetworks = '{${eligibleNetworksString}}'
`);
SET eligibleNetworks = $1
`,
[eligibleNetworks],
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
Expand Down

0 comments on commit c851c2a

Please sign in to comment.