Commit dfbe9d2e by pupi1985

Turned REPLACE statements into INSERT..ON DUPLICATE KEY UPDATE in db/install.php

parent e86035f8
......@@ -595,7 +595,11 @@
Set the current version in the database
*/
{
qa_db_query_sub("REPLACE ^options (title,content) VALUES ('db_version', #)", $version);
qa_db_query_sub(
"INSERT INTO ^options (title, content) VALUES ('db_version', #) " .
"ON DUPLICATE KEY UPDATE content = VALUES(content)",
$version
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment