mirror of
https://mau.dev/maunium/synapse.git
synced 2025-03-05 00:00:46 +01:00
Fix port_from_sqlite_to_postgres after changes to storage layer.
This commit is contained in:
parent
89c0cd4acc
commit
f08c33e834
1 changed files with 2 additions and 4 deletions
|
@ -106,7 +106,7 @@ class Store(object):
|
|||
try:
|
||||
txn = conn.cursor()
|
||||
return func(
|
||||
LoggingTransaction(txn, desc, self.database_engine),
|
||||
LoggingTransaction(txn, desc, self.database_engine, []),
|
||||
*args, **kwargs
|
||||
)
|
||||
except self.database_engine.module.DatabaseError as e:
|
||||
|
@ -378,9 +378,7 @@ class Porter(object):
|
|||
|
||||
for i, row in enumerate(rows):
|
||||
rows[i] = tuple(
|
||||
self.postgres_store.database_engine.encode_parameter(
|
||||
conv(j, col)
|
||||
)
|
||||
conv(j, col)
|
||||
for j, col in enumerate(row)
|
||||
if j > 0
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue