diff --git a/backend/src/case_file/case_file.graphql b/backend/src/case_file/case_file.graphql index 55357ce9..4ac9488c 100644 --- a/backend/src/case_file/case_file.graphql +++ b/backend/src/case_file/case_file.graphql @@ -136,6 +136,7 @@ type Mutation { createPrevention(createPreventionInput: CreatePreventionInput!): CaseFile! updatePrevention(updatePreventionInput: UpdatePreventionInput!): CaseFile! + createNote(input: CreateSupplementalNoteInput!): CaseFile! updateNote(input: UpdateSupplementalNoteInput!): CaseFile! } diff --git a/backend/src/hwcr_prevention_action/hwcr_prevention_action.service.ts b/backend/src/hwcr_prevention_action/hwcr_prevention_action.service.ts index d91c11c3..4ef6b0c9 100644 --- a/backend/src/hwcr_prevention_action/hwcr_prevention_action.service.ts +++ b/backend/src/hwcr_prevention_action/hwcr_prevention_action.service.ts @@ -26,6 +26,9 @@ export class HWCRPreventionActionService { long_description: true, } } + }, + orderBy: { + display_order: 'asc', } }) } diff --git a/migrations/sql/R__0.16.1__CE-365_new_seed_data.sql b/migrations/sql/R__0.16.1__CE-365_new_seed_data.sql new file mode 100644 index 00000000..3a34d01a --- /dev/null +++ b/migrations/sql/R__0.16.1__CE-365_new_seed_data.sql @@ -0,0 +1,23 @@ +insert into case_management.action_code + (action_code, short_description, long_description, active_ind, create_user_id, create_utc_timestamp) +values + ('CNTCTBIOVT', 'Contacted biologist and/or veterinarian', 'Contacted biologist and/or veterinarian', 'Y', CURRENT_USER, CURRENT_TIMESTAMP), + ('DIRLOWLACT', 'Directed livestock owner to or explained sections 2, 26(2) and 75 of the Wildlife Act', 'Directed livestock owner to or explained sections 2, 26(2) and 75 of the Wildlife Act', 'Y', CURRENT_USER, CURRENT_TIMESTAMP), + ('CONTACTLPP', 'Contacted the Livestock Protection Program ("LPP") (cattle and sheep only)', 'Contacted the Livestock Protection Program ("LPP") (cattle and sheep only)', 'Y', CURRENT_USER, CURRENT_TIMESTAMP) +on conflict do nothing; + +UPDATE case_management.action_type_action_xref +SET display_order = 6 WHERE action_code = 'CNTCTBYLAW'; +UPDATE case_management.action_type_action_xref +SET display_order = 5 WHERE action_code = 'CNTCTGROUP'; + +insert into case_management.action_type_action_xref + (action_type_code, action_code, display_order, active_ind, create_user_id, create_utc_timestamp) +values + ('COSPRV&EDU', 'CNTCTBIOVT', 4, 'Y', CURRENT_USER, CURRENT_TIMESTAMP), + ('COSPRV&EDU', 'DIRLOWLACT', 7, 'Y', CURRENT_USER, CURRENT_TIMESTAMP), + ('COSPRV&EDU', 'CONTACTLPP', 8, 'Y', CURRENT_USER, CURRENT_TIMESTAMP) +on conflict do nothing; + +UPDATE case_management.configuration +SET configuration_value = 2 WHERE configuration_code = 'CDTABLEVER'; \ No newline at end of file