Expand ON DUPLICATE KEY statement to match the new unique key
This commit is contained in:
parent
8e6aa14704
commit
e873d62e2c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue