Skip to content

Commit 4860ddf

Browse files
committed
Fix crypto store migration when there are long-lived megolm sessions
1 parent 754ec52 commit 4860ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix/crypto/store/asyncpg/upgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ async def upgrade_v9_postgres(conn: Connection) -> None:
310310

311311
await conn.execute(
312312
"ALTER TABLE crypto_megolm_outbound_session ALTER COLUMN max_age TYPE BIGINT "
313-
"USING (EXTRACT(EPOCH from max_age)*1000)::int"
313+
"USING (EXTRACT(EPOCH from max_age)*1000)::bigint"
314314
)
315315

316316

0 commit comments

Comments
 (0)