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:
iequidoo
2025-07-09 09:10:49 -03:00
committed by iequidoo
parent 3f66ae91cd
commit a87ee030fc
+2 -3
View File
@@ -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")?;