Rename db upgrade
This commit is contained in:
@@ -10,5 +10,5 @@ from . import (
|
|||||||
v05_channel_ghosts,
|
v05_channel_ghosts,
|
||||||
v06_puppet_avatar_url,
|
v06_puppet_avatar_url,
|
||||||
v07_puppet_phone_number,
|
v07_puppet_phone_number,
|
||||||
v08_infinite_backfill,
|
v08_portal_first_event,
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ from mautrix.util.async_db import Connection
|
|||||||
from . import upgrade_table
|
from . import upgrade_table
|
||||||
|
|
||||||
|
|
||||||
@upgrade_table.register(description="Switch to infinite backfill with MSC2716")
|
@upgrade_table.register(description="Track first event ID in portals for infinite backfilling")
|
||||||
async def upgrade_v8(conn: Connection) -> None:
|
async def upgrade_v8(conn: Connection) -> None:
|
||||||
await conn.execute("ALTER TABLE portal ADD COLUMN first_event_id TEXT")
|
await conn.execute("ALTER TABLE portal ADD COLUMN first_event_id TEXT")
|
||||||
await conn.execute("ALTER TABLE portal ADD COLUMN next_batch_id TEXT")
|
await conn.execute("ALTER TABLE portal ADD COLUMN next_batch_id TEXT")
|
||||||
Reference in New Issue
Block a user