From 24f1bc60681a2be87bbfc8ccad28272ac69fa188 Mon Sep 17 00:00:00 2001 From: Andreas Moik Date: Wed, 6 Apr 2016 11:03:35 +0200 Subject: [PATCH] fixed variable names --- system/dbupdate_eine_uid.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/system/dbupdate_eine_uid.php b/system/dbupdate_eine_uid.php index bf26444c2..cb016218b 100644 --- a/system/dbupdate_eine_uid.php +++ b/system/dbupdate_eine_uid.php @@ -229,9 +229,9 @@ function modifyOneTable($db, $table) ORDER BY conrelid::regclass::text, contype DESC;"); $def = $db->db_fetch_object($get_definition_result); - if(!$index_drop_result = $db->db_query('ALTER TABLE '.$table["schema"].".".$table["name"].' DROP CONSTRAINT '.$row->indexname)) + if(!$pk_drop_result = $db->db_query('ALTER TABLE '.$table["schema"].".".$table["name"].' DROP CONSTRAINT '.$row->indexname)) { - echo "

ACHTUNG: DROPPEN von ".$row->indexname." fehlgeschlagen(wird übersprungen)

"; + echo "

ACHTUNG: DROPPEN von PRIMARY KEY ".$row->indexname." fehlgeschlagen(wird übersprungen)

"; $db->db_query("ROLLBACK;"); return; } @@ -241,7 +241,7 @@ function modifyOneTable($db, $table) } else { - if(!$index_drop_result = $db->db_query('ALTER TABLE '.$table["schema"].".".$table["name"].' DROP INDEX '.$row->indexname)) + if(!$index_drop_result = $db->db_query('DROP INDEX '.$table["schema"].".".$row->indexname)) { echo "

ACHTUNG: DROPPEN von INDEX ".$row->indexname." fehlgeschlagen(wird übersprungen)

"; $db->db_query("ROLLBACK;"); @@ -289,16 +289,16 @@ function modifyOneTable($db, $table) foreach( $primary_keys as $pk) { - if(!$index_drop_result = $db->db_query($pk)) + if(!$pk_add_result = $db->db_query($pk)) { - echo "

ACHTUNG: ADDEN von INDEX ".$row->indexname." fehlgeschlagen(wird übersprungen)

"; + echo "

ACHTUNG: ADDEN von PRIMARY KEY ".$row->indexname." fehlgeschlagen(wird übersprungen)

"; $db->db_query("ROLLBACK;"); return; } } foreach( $indices as $ind) { - if(!$index_drop_result = $db->db_query($ind)) + if(!$index_add_result = $db->db_query($ind)) { echo "

ACHTUNG: ADDEN von INDEX ".$row->indexname." fehlgeschlagen(wird übersprungen)

"; $db->db_query("ROLLBACK;");