Skip to content

Commit 40124f0

Browse files
committed
#13121 - set HIDE_JURISDICTION_FIELDS feature config enabled column to false if sub-query returns null
1 parent 22ed5d3 commit 40124f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sormas-backend/src/main/resources/sql/sormas_schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12834,7 +12834,7 @@ ALTER TABLE userroles_history ADD COLUMN restrictAccessToAssignedEntities boolea
1283412834
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');
1283512835

1283612836
-- 2023-12-18 Move hide jurisdiction fields feature property to dedicated feature type #12806
12837-
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');
12837+
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');
1283812838

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

0 commit comments

Comments
 (0)