mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix prepare_sqlite3_database's convert_param_style
This commit is contained in:
parent
05a35d62b6
commit
6bc9edd8b2
@ -442,8 +442,6 @@ def prepare_sqlite3_database(db_conn):
|
|||||||
new. This only affects sqlite databases since they were the only ones
|
new. This only affects sqlite databases since they were the only ones
|
||||||
supported at the time.
|
supported at the time.
|
||||||
"""
|
"""
|
||||||
import sqlite3
|
|
||||||
|
|
||||||
with db_conn:
|
with db_conn:
|
||||||
schema_path = os.path.join(
|
schema_path = os.path.join(
|
||||||
dir_path, "schema", "schema_version.sql",
|
dir_path, "schema", "schema_version.sql",
|
||||||
@ -462,10 +460,7 @@ def prepare_sqlite3_database(db_conn):
|
|||||||
|
|
||||||
if row and row[0]:
|
if row and row[0]:
|
||||||
db_conn.execute(
|
db_conn.execute(
|
||||||
_convert_param_style(
|
|
||||||
"REPLACE INTO schema_version (version, upgraded)"
|
"REPLACE INTO schema_version (version, upgraded)"
|
||||||
" VALUES (?,?)",
|
" VALUES (?,?)",
|
||||||
sqlite3
|
|
||||||
),
|
|
||||||
(row[0], False)
|
(row[0], False)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user