mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Comments
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1091 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user