Skip to content

Commit

Permalink
#12794 - Fix insert command
Browse files Browse the repository at this point in the history
  • Loading branch information
carina29 committed Jan 8, 2024
1 parent 62187be commit c448af0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sormas-backend/src/main/resources/sql/sormas_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12834,11 +12834,10 @@ ALTER TABLE userroles_history ADD COLUMN restrictAccessToAssignedEntities boolea
INSERT INTO schema_version (version_number, comment) VALUES (536, 'Assign case(s) to a User and allow them to see the data of only the assigned case(s) in the system #12697');

-- 2023-12-18 Move hide jurisdiction fields feature property to dedicated feature type #12806
INSERT INTO featureconfiguration (id, uuid, creationdate, changedate, enabled, featuretype)
VALUES (nextval('entity_seq'), generate_base32_uuid(), now(), now(), (SELECT properties::jsonb->'HIDE_JURISDICTION_FIELDS' FROM featureconfiguration WHERE featuretype = 'CASE_SURVEILANCE')::boolean, 'HIDE_JURISDICTION_FIELDS');
INSERT INTO featureconfiguration (id, uuid, creationdate, changedate, enabled, featuretype)VALUES (nextval('entity_seq'), generate_base32_uuid(), now(), now(), (SELECT properties::jsonb->'HIDE_JURISDICTION_FIELDS' FROM featureconfiguration WHERE featuretype = 'CASE_SURVEILANCE')::text::boolean, 'HIDE_JURISDICTION_FIELDS');

UPDATE featureconfiguration SET properties = properties::jsonb - 'HIDE_JURISDICTION_FIELDS' WHERE featuretype = 'CASE_SURVEILANCE';

INSERT INTO schema_version (version_number, comment) VALUES (537, 'Move hide jurisdiction fields feature property to dedicated feature type #12806');

-- *** Insert new sql commands BEFORE this line. Remember to always consider _history tables. ***
-- *** Insert new sql commands BEFORE this line. Remember to always consider _history tables. ***

0 comments on commit c448af0

Please sign in to comment.