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:
parent
15c63e7d8a
commit
effa42c9b5
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue