]> git.joonet.de Git - adminer.git/commitdiff
MySQL: Don't remove partitioning on non-partitioned tables
authorJakub Vrana <jakub@vrana.cz>
Sun, 9 Sep 2012 07:00:59 +0000 (00:00 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sun, 9 Sep 2012 07:00:59 +0000 (00:00 -0700)
adminer/create.inc.php

index a382cfdeaedb398a1c83bc7bb35e060c56476827..dd73119f0ed2906d6fba713aad15a6005ab421ae 100644 (file)
@@ -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.');