Skip to content
Snippets Groups Projects
Commit 970a9b9d authored by Erik Johnston's avatar Erik Johnston
Browse files

We can't use REPLACE when upgrading databases now we have postgres

parent 64991b0c
No related branches found
No related tags found
No related merge requests found
...@@ -368,9 +368,10 @@ def _upgrade_existing_database(cur, current_version, applied_delta_files, ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment