Remove InnoDB table comment in Tables and views

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@516 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2008-10-03 12:40:20 +00:00
parent af4fbca33a
commit 3920ebbe37
3 changed files with 8 additions and 3 deletions

View File

@@ -71,9 +71,7 @@ if ($_POST) {
process_fields($row["fields"]);
} elseif (strlen($_GET["create"])) {
$row = table_status($_GET["create"]);
if ($row["Engine"] == "InnoDB") {
$row["Comment"] = preg_replace('~(?:(.+); )?InnoDB free: .*~', '\\1', $row["Comment"]);
}
table_comment($row);
$row["name"] = $_GET["create"];
$row["fields"] = array_values($orig_fields);
} else {