Skip to content

Commit

Permalink
RN-625 (2) Fix migration (#4161)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorNadj authored Sep 12, 2022
1 parent 09a19cd commit 62a9701
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.up = async function (db) {
// If any data elements or groups have not been updated to use a specific dhis instance, we set them to NOT_SET so we can add the constraint
await db.runSql(`
UPDATE ${table} SET config = (config || '{"dhisInstanceCode": "NOT_SET"}')
WHERE service_type = 'dhis' AND config->>'dhisInstanceCode'::text = 'null';
WHERE service_type = 'dhis' AND config->>'dhisInstanceCode'::text is null;
`);

// Add constraint
Expand Down

0 comments on commit 62a9701

Please sign in to comment.