Skip to content

Commit

Permalink
Merge pull request #13125 from SORMAS-Foundation/bugfix-13121-error-d…
Browse files Browse the repository at this point in the history
…uring-fresh-install-of-system-at-server-update-step

#13121 - Error during Fresh Install of system at server update step
  • Loading branch information
obinna-h-n authored Aug 2, 2024
2 parents 22ed5d3 + 40124f0 commit e322a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sormas-backend/src/main/resources/sql/sormas_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12834,7 +12834,7 @@ 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')::text::boolean, 'HIDE_JURISDICTION_FIELDS');
INSERT INTO featureconfiguration (id, uuid, creationdate, changedate, enabled, featuretype)VALUES (nextval('entity_seq'), generate_base32_uuid(), now(), now(), coalesce((SELECT properties::jsonb->'HIDE_JURISDICTION_FIELDS' FROM featureconfiguration WHERE featuretype = 'CASE_SURVEILANCE')::text::boolean, false), 'HIDE_JURISDICTION_FIELDS');

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

Expand Down

0 comments on commit e322a60

Please sign in to comment.