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
effa42c9b5
commit
a3b5fb6ecc
2 changed files with 3 additions and 7 deletions
|
@ -13,6 +13,4 @@ INSERT INTO `settings` (`key`, `value`) VALUES
|
|||
('tituspijean-auth-ldap.use_tls', ''),
|
||||
('tituspijean-auth-ldap.user_mail', 'mail'),
|
||||
('tituspijean-auth-ldap.user_username', 'uid')
|
||||
AS new
|
||||
ON DUPLICATE KEY UPDATE
|
||||
value = new.value;
|
||||
ON DUPLICATE KEY UPDATE value = VALUES(value);
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
REPLACE INTO `settings` (`key`, `value`) VALUES
|
||||
INSERT INTO `settings` (`key`, `value`) VALUES
|
||||
('mail_driver', 'mail'),
|
||||
('mail_encryption', 'ssl'),
|
||||
('mail_from', '$app@$domain'),
|
||||
('mail_host', 'localhost'),
|
||||
('mail_port', '587')
|
||||
AS new
|
||||
ON DUPLICATE KEY UPDATE
|
||||
value = new.value;
|
||||
ON DUPLICATE KEY UPDATE value = VALUES(value);
|
||||
|
|
Loading…
Reference in a new issue