File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
mautrix/crypto/store/asyncpg Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -257,17 +257,17 @@ async def upgrade_v6(conn: Connection) -> None:
257257
258258
259259@upgrade_table .register (
260- description = "Synchronize schema with mautrix-go" , upgrades_to = 8 , transaction = False
260+ description = "Synchronize schema with mautrix-go" , upgrades_to = 9 , transaction = False
261261)
262- async def upgrade_v8 (conn : Connection , scheme : Scheme ) -> None :
262+ async def upgrade_v9 (conn : Connection , scheme : Scheme ) -> None :
263263 if scheme == Scheme .POSTGRES :
264264 async with conn .transaction ():
265- await upgrade_v8_postgres (conn )
265+ await upgrade_v9_postgres (conn )
266266 else :
267- await upgrade_v8_sqlite (conn )
267+ await upgrade_v9_sqlite (conn )
268268
269269
270- async def upgrade_v8_postgres (conn : Connection ) -> None :
270+ async def upgrade_v9_postgres (conn : Connection ) -> None :
271271 await conn .execute ("UPDATE crypto_account SET device_id='' WHERE device_id IS NULL" )
272272 await conn .execute ("ALTER TABLE crypto_account ALTER COLUMN device_id SET NOT NULL" )
273273
@@ -303,7 +303,7 @@ async def upgrade_v8_postgres(conn: Connection) -> None:
303303 )
304304
305305
306- async def upgrade_v8_sqlite (conn : Connection ) -> None :
306+ async def upgrade_v9_sqlite (conn : Connection ) -> None :
307307 await conn .execute ("PRAGMA foreign_keys = OFF" )
308308 async with conn .transaction ():
309309 await conn .execute (
You can’t perform that action at this time.
0 commit comments