diff --git a/conf/ldap.sql b/conf/ldap.sql index 3b18d69..46531f1 100644 --- a/conf/ldap.sql +++ b/conf/ldap.sql @@ -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); diff --git a/conf/mail.sql b/conf/mail.sql index f043bcb..82a7545 100644 --- a/conf/mail.sql +++ b/conf/mail.sql @@ -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);