From fc4e00380a06cc47dde2065075d436f95b51d0de Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 3 Feb 2013 15:25:05 +0000 Subject: [PATCH] Update the schema update sql code. --- includes/lib_schema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/lib_schema.php b/includes/lib_schema.php index effe503411..825f26be0f 100644 --- a/includes/lib_schema.php +++ b/includes/lib_schema.php @@ -465,7 +465,7 @@ function db_upgrade_schema ($db, $db_type, $db_name, $display_results) { if ($row['rebuild'] == "true") { if ($db_type == "sqlite") { //start the transaction - $sql_update .= "BEGIN TRANSACTION;\n"; + //$sql_update .= "BEGIN TRANSACTION;\n"; //rename the table $sql_update .= "ALTER TABLE ".$table_name." RENAME TO tmp_".$table_name.";\n"; //create the table @@ -475,7 +475,7 @@ function db_upgrade_schema ($db, $db_type, $db_name, $display_results) { //drop the old table $sql_update .= "DROP TABLE tmp_".$table_name.";\n"; //commit the transaction - $sql_update .= "COMMIT;\n"; + //$sql_update .= "COMMIT;\n"; } } }