Expand ON DUPLICATE KEY statement to match the new unique key
This commit is contained in:
parent
8e6aa14704
commit
e873d62e2c
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ class Server extends \Friendica\Directory\Model
|
||||||
SET `server_id` = :server_id,
|
SET `server_id` = :server_id,
|
||||||
`alias` = :alias,
|
`alias` = :alias,
|
||||||
`timestamp` = NOW()
|
`timestamp` = NOW()
|
||||||
ON DUPLICATE KEY UPDATE `timestamp` = NOW()',
|
ON DUPLICATE KEY UPDATE
|
||||||
|
`server_id` = :server_id,
|
||||||
|
`timestamp` = NOW()',
|
||||||
[
|
[
|
||||||
'server_id' => $server_id,
|
'server_id' => $server_id,
|
||||||
'alias' => strtolower($server_alias)
|
'alias' => strtolower($server_alias)
|
||||||
|
|
Loading…
Reference in a new issue