mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 15:42:10 +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(
|
||||
"SELECT id, from_id, to_id
|
||||
FROM msgs
|
||||
WHERE id>9
|
||||
AND (param LIKE '%\nc=1%' OR param LIKE 'c=1%')
|
||||
AND chat_id>9
|
||||
WHERE chat_id>9
|
||||
AND (param GLOB '*\nc=1*' OR param GLOB 'c=1*')
|
||||
ORDER BY id DESC LIMIT 10000",
|
||||
)
|
||||
.context("Step 32")?;
|
||||
|
||||
Reference in New Issue
Block a user