Skip to content

Commit

Permalink
feat: new equipment codes
Browse files Browse the repository at this point in the history
  • Loading branch information
afwilcox committed Jan 2, 2025
1 parent 0c6cc62 commit c1d9bdc
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions migrations/sql/R__code-table-data.sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5488,6 +5488,40 @@ set
where
hwcr_outcome_code = 'DESTRYOTH';

--------------------------
-- Equipment code updates
-------------------------
update case_management.equipment_code
set
active_ind = 'N'
where
equipment_code IN ('BRSNR', 'BRLTR', 'CRFTR', 'CRLTR');

insert into equipment_code (equipment_code, short_description, long_description, display_order, active_ind, create_user_id, create_utc_timestamp, update_user_id, update_utc_timestamp, is_trap_ind)
values
('FTRAP', 'Foothold trap', 'Foothold trap', 10, true, 'FLYWAY', now(), 'FLYWAY', now(), 'Y'),
('LTRAP', 'Live trap', 'Live trap', 20, true, 'FLYWAY', now(), 'FLYWAY', now(), 'Y'),
('LLTHL', 'Less lethal', 'Less lethal', 60, true, 'FLYWAY', now(), 'FLYWAY', now(), 'N'),
('K9UNT', 'K9 unit', 'K9 unit', 70, true, 'FLYWAY', now(), 'FLYWAY', now(), 'N');

update case_management.equipment_code
set
display_order = 30
where
equipment_code = 'NKSNR';

update case_management.equipment_code
set
display_order = 40
where
equipment_code = 'SIGNG';

update case_management.equipment_code
set
display_order = 50
where
equipment_code = 'TRCAM';

--------------------------
-- New Changes above this line
-------------------------
Expand Down

0 comments on commit c1d9bdc

Please sign in to comment.