diff --git a/system/dbupdate_eine_uid.php b/system/dbupdate_eine_uid.php index ead6df0d8..56e42c2e4 100644 --- a/system/dbupdate_eine_uid.php +++ b/system/dbupdate_eine_uid.php @@ -65,37 +65,12 @@ if(!isset($_POST["action"])) echo "
-
"; } else { echo "

Es sind keine Änderungen vorzunehmen!

"; } -} -else if($_POST["action"] == "Testen") -{ - - echo '

Systemcheck!

'; - echo '

DB-Updates!

'; - - - // *** Pruefung und hinzufuegen der neuen Attribute und Tabellen - echo '

Pruefe Tabellen und Attribute!

'; - - //modify all tables - foreach($all_tables_to_update as $t) - modifyOneTable($db, $t, false); - - - - echo " -
- - -
"; - - } else if($_POST["action"] == "Starten") { @@ -118,7 +93,7 @@ else if($_POST["action"] == "Starten") //modify all tables foreach($all_tables_to_update as $t) - modifyOneTable($db, $t, true); + modifyOneTable($db, $t); @@ -224,7 +199,7 @@ function checkForUpdates($db, $table) } -function modifyOneTable($db, $table, $permanent) +function modifyOneTable($db, $table) { if(!$result = @$db->db_query("SELECT prestudent_id FROM ".$table["schema"].".".$table["name"]." LIMIT 1;")) { @@ -329,11 +304,7 @@ function modifyOneTable($db, $table, $permanent) } } - - if(!$permanent) - $db->db_query("ROLLBACK;"); - else - $db->db_query("COMMIT;"); + $db->db_query("COMMIT;"); return; } }