mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 03:35:28 +00:00
Fix param style to work on both sqlite and postgres
This commit is contained in:
parent
940a161192
commit
e1627388d1
@ -68,7 +68,11 @@ def run_upgrade(cur, database_engine, *args, **kwargs):
|
|||||||
}
|
}
|
||||||
progress_json = ujson.dumps(progress)
|
progress_json = ujson.dumps(progress)
|
||||||
|
|
||||||
cur.execute(
|
sql = (
|
||||||
"INSERT into background_updates (update_name, progress_json)"
|
"INSERT into background_updates (update_name, progress_json)"
|
||||||
" VALUES (?, ?)", ("event_search", progress_json)
|
" VALUES (?, ?)"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
sql = database_engine.convert_param_style(sql)
|
||||||
|
|
||||||
|
cur.execute(sql, ("event_search", progress_json))
|
||||||
|
Loading…
Reference in New Issue
Block a user