mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
fix: migrate_key_contacts(): Remove "id>9" from encrypted messages SELECT
+ Replace LIKE with GLOB, the latter is case-sensitive.
This commit is contained in:
@@ -1838,9 +1838,8 @@ fn migrate_key_contacts(
|
|||||||
.prepare(
|
.prepare(
|
||||||
"SELECT id, from_id, to_id
|
"SELECT id, from_id, to_id
|
||||||
FROM msgs
|
FROM msgs
|
||||||
WHERE id>9
|
WHERE chat_id>9
|
||||||
AND (param LIKE '%\nc=1%' OR param LIKE 'c=1%')
|
AND (param GLOB '*\nc=1*' OR param GLOB 'c=1*')
|
||||||
AND chat_id>9
|
|
||||||
ORDER BY id DESC LIMIT 10000",
|
ORDER BY id DESC LIMIT 10000",
|
||||||
)
|
)
|
||||||
.context("Step 32")?;
|
.context("Step 32")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user