Comments
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1091 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
61bda35167
commit
f83f204304
|
@ -23,6 +23,7 @@ if ($_POST && !$error && !$_POST["add"]) {
|
||||||
ksort($existing["columns"]);
|
ksort($existing["columns"]);
|
||||||
ksort($existing["lengths"]);
|
ksort($existing["lengths"]);
|
||||||
if ($index["type"] == $existing["type"] && $existing["columns"] === $columns && $existing["lengths"] === $lengths) {
|
if ($index["type"] == $existing["type"] && $existing["columns"] === $columns && $existing["lengths"] === $lengths) {
|
||||||
|
// skip existing index
|
||||||
unset($indexes[$name]);
|
unset($indexes[$name]);
|
||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
@ -31,6 +32,7 @@ if ($_POST && !$error && !$_POST["add"]) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// drop removed indexes
|
||||||
foreach ($indexes as $name => $existing) {
|
foreach ($indexes as $name => $existing) {
|
||||||
$alter[] = "\nDROP INDEX " . idf_escape($name);
|
$alter[] = "\nDROP INDEX " . idf_escape($name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue