mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Messages: @celestora had forgotten about existing of deleted messages for correspondencies sql file, so i fixed it in her place
This commit is contained in:
parent
944d338034
commit
7c516a8089
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,8 @@ SELECT DISTINCT id, class FROM
|
||||||
sender_id = ?
|
sender_id = ?
|
||||||
AND
|
AND
|
||||||
sender_type = ?
|
sender_type = ?
|
||||||
|
AND
|
||||||
|
deleted = 0
|
||||||
) UNION (
|
) UNION (
|
||||||
SELECT
|
SELECT
|
||||||
sender_id AS id,
|
sender_id AS id,
|
||||||
|
@ -20,6 +22,8 @@ SELECT DISTINCT id, class FROM
|
||||||
recipient_id = ?
|
recipient_id = ?
|
||||||
AND
|
AND
|
||||||
recipient_type = ?
|
recipient_type = ?
|
||||||
|
AND
|
||||||
|
deleted = 0
|
||||||
)
|
)
|
||||||
ORDER BY
|
ORDER BY
|
||||||
time
|
time
|
||||||
|
|
Loading…
Reference in a new issue