From: Jakub Vrana Date: Sun, 9 Sep 2012 07:00:59 +0000 (-0700) Subject: MySQL: Don't remove partitioning on non-partitioned tables X-Git-Tag: v3.6.0~7 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=944f141bf4521eac3ee526567064e4ae0ee7dc41;p=adminer.git MySQL: Don't remove partitioning on non-partitioned tables --- diff --git a/adminer/create.inc.php b/adminer/create.inc.php index a382cfde..dd73119f 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -80,7 +80,7 @@ if ($_POST && !$error && !$_POST["add"] && !$_POST["drop_col"] && !$_POST["up"] ? " (" . implode(",", $partitions) . "\n)" : ($_POST["partitions"] ? " PARTITIONS " . (+$_POST["partitions"]) : "") ); - } elseif ($TABLE != "" && support("partitioning")) { + } elseif (support("partitioning") && ereg("partitioned", $orig_status["Create_options"])) { $partitioning .= "\nREMOVE PARTITIONING"; } $message = lang('Table has been altered.');