Skip to content

Commit 29e28c2

Browse files
committed
change update query
1 parent 34cb3b6 commit 29e28c2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

engine/schema/src/main/resources/META-INF/db/schema-42200to42210.sql

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ UPDATE `cloud`.`alert` SET type = 34 WHERE name = 'ALERT.VR.PRIVATE.IFACE.MTU';
3434
-- Update configuration 'kvm.ssh.to.agent' description and is_dynamic fields
3535
UPDATE `cloud`.`configuration` SET description = 'True if the management server will restart the agent service via SSH into the KVM hosts after or during maintenance operations', is_dynamic = 1 WHERE name = 'kvm.ssh.to.agent';
3636

37-
-- Update `user.password.reset.mail.template` configuration value to follow new logic
38-
UPDATE configuration
39-
SET value = 'Hello {{username}}!\nYou have requested to reset your password. Please click the following link to reset your password:\n{{{resetLink}}}\nIf you did not request a password reset,please ignore this email.\n\nRegards,\nThe CloudStack Team'
40-
WHERE value
41-
REGEXP '^Hello \\{\\{username\\}\\}!\\nYou have requested to reset your password\\. Please click the following link to reset your password:\\n(http://\\{\\{\\{resetLink\\}\\}\\}|\\{\\{\\{domainUrl\\}\\}\\}\\{\\{\\{resetLink\\}\\}\\})\\nIf you did not request a password reset, please ignore this email\\.\\n\\nRegards,\\nThe CloudStack Team$';
37+
-- Update `user.password.reset.mail.template` configuration value to match new logic
38+
update configuration
39+
set value = 'Hello {{username}}!\nYou have requested to reset your password. Please click the following link to reset your password:\n{{{resetLink}}}\nIf you did not request a password reset,please ignore this email.\n\nRegards,\nThe CloudStack Team'
40+
where value in (
41+
'Hello {{username}}!\nYou have requested to reset your password. Please click the following link to reset your password:\nhttp://{{{resetLink}}}\nIf you did not request a password reset,please ignore this email.\n\nRegards,\nThe CloudStack Team',
42+
'Hello {{username}}!\nYou have requested to reset your password. Please click the following link to reset your password:\n{{{domainUrl}}}{{{resetLink}}}\nIf you did not request a password reset,please ignore this email.\n\nRegards,\nThe CloudStack Team'
43+
)

0 commit comments

Comments
 (0)