Skip to content

Commit 1ee8ce1

Browse files
committed
Use CONCAT_WS sql method to create multiline string
1 parent 5c9224a commit 1ee8ce1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ ALTER TABLE `cloud`.`backups` DROP COLUMN `backup_interval_type`;
4444

4545
-- Update `user.password.reset.mail.template` configuration value to match new logic
4646
UPDATE `cloud`.`configuration`
47-
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'
48-
WHERE name = 'user.password.reset.mail.template' AND value IN (
49-
'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',
50-
'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'
51-
);
47+
SET value = CONCAT_WS('\n', 'Hello {{username}}!', 'You have requested to reset your password. Please click the following link to reset your password:', '{{{resetLink}}}', 'If you did not request a password reset, please ignore this email.', '', 'Regards,', 'The CloudStack Team')
48+
WHERE name = 'user.password.reset.mail.template'
49+
AND value IN (CONCAT_WS('\n', 'Hello {{username}}!', 'You have requested to reset your password. Please click the following link to reset your password:', 'http://{{{resetLink}}}', 'If you did not request a password reset, please ignore this email.', '', 'Regards,', 'The CloudStack Team'), CONCAT_WS('\n', 'Hello {{username}}!', 'You have requested to reset your password. Please click the following link to reset your password:', '{{{domainUrl}}}{{{resetLink}}}', 'If you did not request a password reset, please ignore this email.', '', 'Regards,', 'The CloudStack Team'));
50+

0 commit comments

Comments
 (0)