Update the schema update sql code.

This commit is contained in:
Mark Crane
2013-02-03 15:25:05 +00:00
parent b0a7b3d027
commit 2f35b57750

View File

@@ -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";
}
}
}