예제 #1
0
		}else{
			foreach($column1 AS $key => $value){
				if ($column2[$key] != $value){
					echo $column_text . ": " . $key . ":\"" . $value . "\" does not match on column2: " . $key . ":\"" . $column2[$key] . "\".\n";
				}
			}
			
			if ($column1["type"] != $column2["type"]){
				echo("Warning: Column-type doesnt match on \"" . $column_text . "\".\nDB1: \"" . $column1["type"] . "\".\nDB2: \"" . $column2["type"] . "\".\n\n");
			}
		}
	}
	
	//Go through indexes.
	$indexes1 = $dbconn1->getIndexes($table1["name"]);
	$indexes2 = $dbconn2->getIndexes($table2["name"]);
	
	if (count($indexes1) > 0){
		foreach($indexes1 AS $index1){
			$index2 = null;
			
			if (count($indexes2) > 0){
				foreach($indexes2 AS $index2_temp){
					if ($index2_temp["name"] == $index1["name"]){
						$index2 = $index2_temp;
						break;
					}
				}
			}
			
			if (!$index2){