Expand ON DUPLICATE KEY statement to match the new unique key

This commit is contained in:
Hypolite Petovan 2020-09-26 18:09:21 -04:00
parent 8e6aa14704
commit e873d62e2c

View file

@ -33,7 +33,9 @@ class Server extends \Friendica\Directory\Model
SET `server_id` = :server_id,
`alias` = :alias,
`timestamp` = NOW()
ON DUPLICATE KEY UPDATE `timestamp` = NOW()',
ON DUPLICATE KEY UPDATE
`server_id` = :server_id,
`timestamp` = NOW()',
[
'server_id' => $server_id,
'alias' => strtolower($server_alias)