Skip to content

Commit c962ec3

Browse files
committed
FIX: 13788: fix menu system config value regexes
1 parent 2100265 commit c962ec3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15467,4 +15467,18 @@ ALTER TABLE exposures_protectivemeasures_history OWNER TO sormas_user;
1546715467

1546815468
INSERT INTO schema_version (version_number, comment) VALUES (614, '#13887 - Exposure form redesign');
1546915469

15470+
-- updated regexes for MENU system config values
15471+
UPDATE systemconfigurationvalue
15472+
SET value_pattern = '^(default|red|green|indigo|gray)|(#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}))$'
15473+
WHERE config_key = 'MENU_BACKGROUND_COLOR';
15474+
15475+
UPDATE systemconfigurationvalue
15476+
SET value_pattern = '^[\w\s]{0,16}$'
15477+
WHERE config_key = 'MENU_SUBTITLE';
15478+
15479+
INSERT INTO schema_version (version_number, comment) VALUES (615, '#13552 - FIX menu regexes');
15480+
15481+
15482+
15483+
1547015484
-- *** Insert new sql commands BEFORE this line. Remember to always consider _history tables. ***

0 commit comments

Comments
 (0)