1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

Handle existing sql rows, properly

This commit is contained in:
tituspijean 2021-05-01 16:09:25 +02:00
parent 15c63e7d8a
commit effa42c9b5
2 changed files with 6 additions and 2 deletions

View file

@ -13,4 +13,6 @@ INSERT INTO `settings` (`key`, `value`) VALUES
('tituspijean-auth-ldap.use_tls', ''),
('tituspijean-auth-ldap.user_mail', 'mail'),
('tituspijean-auth-ldap.user_username', 'uid')
ON DUPLICATE KEY UPDATE value = VALUES(value);
AS new
ON DUPLICATE KEY UPDATE
value = new.value;

View file

@ -4,4 +4,6 @@ REPLACE INTO `settings` (`key`, `value`) VALUES
('mail_from', '$app@$domain'),
('mail_host', 'localhost'),
('mail_port', '587')
ON DUPLICATE KEY UPDATE value = VALUES(value);
AS new
ON DUPLICATE KEY UPDATE
value = new.value;