mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
We can't use REPLACE when upgrading databases now we have postgres
This commit is contained in:
parent
64991b0c8b
commit
970a9b9d2b
@ -368,9 +368,10 @@ def _upgrade_existing_database(cur, current_version, applied_delta_files,
|
|||||||
(v, relative_path)
|
(v, relative_path)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cur.execute("DELETE FROM schema_version")
|
||||||
cur.execute(
|
cur.execute(
|
||||||
database_engine.convert_param_style(
|
database_engine.convert_param_style(
|
||||||
"REPLACE INTO schema_version (version, upgraded)"
|
"INSERT INTO schema_version (version, upgraded)"
|
||||||
" VALUES (?,?)",
|
" VALUES (?,?)",
|
||||||
),
|
),
|
||||||
(v, True)
|
(v, True)
|
||||||
|
Loading…
Reference in New Issue
Block a user