store: normalize ids in telegram_file and add index

This commit is contained in:
Tulir Asokan
2026-03-29 14:05:17 +03:00
parent 5c37b186d8
commit 5d05d7ab05
3 changed files with 8 additions and 2 deletions
@@ -0,0 +1,3 @@
-- v7 (compatible with v2+): Add index and fix values in telegram_file
UPDATE telegram_file SET id=REPLACE(id, '-', '') WHERE id LIKE '%-';
CREATE INDEX telegram_file_mxc_idx ON telegram_file (mxc);