store: add more info to telegram_file table

This commit is contained in:
Tulir Asokan
2026-03-29 16:37:06 +03:00
parent c46a3189e0
commit 4f4680b19a
5 changed files with 66 additions and 20 deletions
+2 -2
View File
@@ -218,8 +218,8 @@ FROM telethon_entities_old
WHERE phone<>''
ON CONFLICT DO NOTHING;
INSERT INTO telegram_file (id, mxc, mime_type, size)
SELECT id, mxc, mime_type, size
INSERT INTO telegram_file (id, mxc, mime_type, size, width, height, timestamp)
SELECT id, mxc, mime_type, size, width, height, timestamp
FROM telegram_file_old;
INSERT INTO disappearing_message (bridge_id, mx_room, mxid, type, timer, disappear_at)