Skip to content

Commit

Permalink
string values because table is varchar
Browse files Browse the repository at this point in the history
  • Loading branch information
Serp1co committed Dec 2, 2024
1 parent 3b9a20f commit 9902dcc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_length_min', 'Minimum number of characters in local user passwords', 4, 4)
VALUES ('psw_check_length_min', 'Minimum number of characters in local user passwords', '4', '4')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_length_max', 'Maximum number of characters in local user passwords', 32, 32)
VALUES ('psw_check_length_max', 'Maximum number of characters in local user passwords', '32', '32')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_lower_char_flag', 'Password has to have at least one lower alpha character', FALSE, FALSE)
VALUES ('psw_check_lower_char_flag', 'Password has to have at least one lower alpha character', 'false', 'false')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_upper_char_flag', 'Password has to have at least one upper alpha character', FALSE, FALSE)
VALUES ('psw_check_upper_char_flag', 'Password has to have at least one upper alpha character', 'false', 'false')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_digit_flag', 'Password has to have at least one digit', FALSE, FALSE)
VALUES ('psw_check_digit_flag', 'Password has to have at least one digit', 'false', 'false')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_consecutive_char_flag', 'Password has to have no consecutive characters', FALSE, FALSE)
VALUES ('psw_check_consecutive_char_flag', 'Password has to have no consecutive characters', 'false', 'false')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_special_char_flag', 'Password has to have at least a special character', FALSE, FALSE)
VALUES ('psw_check_special_char_flag', 'Password has to have at least a special character', 'false', 'false')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_restricted_occurrence_flag', 'Password has to have no repeating characters', FALSE, FALSE)
VALUES ('psw_check_restricted_occurrence_flag', 'Password has to have no repeating characters', 'false', 'false')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_max_occurrence', 'Maximum number of valid occurrence of a character', 1, 1)
VALUES ('psw_check_max_occurrence', 'Maximum number of valid occurrence of a character', '1', '1')
ON CONFLICT (key) DO NOTHING;
INSERT INTO rhnConfiguration (key, description, value, default_value)
VALUES ('psw_check_special_characters', 'List of special characters to check in a password', '!$%&()*+,./:;<=>?[\\]^_{|}~', '!$%&()*+,./:;<=>?[\\]^_{|}~')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ UPDATE rhnConfiguration SET
default_value = NULL
WHERE key = 'extauth_default_orgid';
UPDATE rhnConfiguration SET
default_value = FALSE,
default_value = 'false',
value = COALESCE(value, default_value)
WHERE key = 'extauth_use_orgunit';
UPDATE rhnConfiguration SET
default_value = 1,
default_value = '1',
value = COALESCE(value, default_value)
WHERE key = 'system_checkin_threshold';
UPDATE rhnConfiguration SET
default_value = FALSE,
default_value = 'false',
value = COALESCE(value, default_value)
WHERE key = 'extauth_keep_temproles';
alter table rhnConfiguration enable trigger rhnconfiguration_log_trig;

0 comments on commit 9902dcc

Please sign in to comment.