Skip to content

Commit

Permalink
avniproject/avni-webapp#1321 | Init standard_report_card_input for "R…
Browse files Browse the repository at this point in the history
…ecent" StandardReportCards which haven't yet been configured manually by user
  • Loading branch information
himeshr committed Aug 30, 2024
1 parent dd7712b commit 80965df
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
UPDATE report_card
SET standard_report_card_input='{
"programs": [],
"subjectTypes": [],
"encounterTypes": [],
"recentDuration": "{\"value\":\"1\",\"unit\":\"days\"}"
}'::jsonb,
last_modified_date_time = current_timestamp + random() * 5000 * (interval '1 millisecond')
FROM standard_report_card_type srct
WHERE standard_report_card_input = '{}'::jsonb
AND standard_report_card_type_id IS NOT NULL
AND standard_report_card_type_id = srct.id
AND srct.uuid in ('88a7514c-48c0-4d5d-a421-d074e43bb36c',
'a5efc04c-317a-4823-a203-e62603454a65',
'77b5b3fa-de35-4f24-996b-2842492ea6e0');

0 comments on commit 80965df

Please sign in to comment.