git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1091 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-09-11 17:06:45 +00:00
parent 61bda35167
commit f83f204304

View file

@ -23,6 +23,7 @@ if ($_POST && !$error && !$_POST["add"]) {
ksort($existing["columns"]);
ksort($existing["lengths"]);
if ($index["type"] == $existing["type"] && $existing["columns"] === $columns && $existing["lengths"] === $lengths) {
// skip existing index
unset($indexes[$name]);
continue 2;
}
@ -31,6 +32,7 @@ if ($_POST && !$error && !$_POST["add"]) {
}
}
}
// drop removed indexes
foreach ($indexes as $name => $existing) {
$alter[] = "\nDROP INDEX " . idf_escape($name);
}