mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
lol forgot file
This commit is contained in:
parent
0c80f1f041
commit
d9fbe6f7aa
1 changed files with 20 additions and 0 deletions
20
Web/Models/sql/read-messages.tsql
Normal file
20
Web/Models/sql/read-messages.tsql
Normal file
|
@ -0,0 +1,20 @@
|
|||
UPDATE
|
||||
`messages`
|
||||
SET
|
||||
`unread` = 0
|
||||
WHERE
|
||||
(`id` > ?)
|
||||
AND (
|
||||
(
|
||||
(`sender_type` = ?)
|
||||
AND (`recipient_type` = ?)
|
||||
AND (`sender_id` = ?)
|
||||
AND (`recipient_id` = ?)
|
||||
)
|
||||
OR (
|
||||
(`sender_type` = ?)
|
||||
AND (`recipient_type` = ?)
|
||||
AND (`sender_id` = ?)
|
||||
AND (`recipient_id` = ?)
|
||||
)
|
||||
)
|
Loading…
Reference in a new issue