Maintain auto_increment when moving columns (spotted by jenik)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@420 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
e1cec25a79
commit
87ada0ab56
|
@ -67,10 +67,10 @@ $result->free();
|
|||
|
||||
if ($_POST) {
|
||||
$row = $_POST;
|
||||
process_fields($row["fields"]);
|
||||
if ($row["auto_increment_col"]) {
|
||||
$row["fields"][$row["auto_increment_col"] - 1]["auto_increment"] = true;
|
||||
$row["fields"][$row["auto_increment_col"]]["auto_increment"] = true;
|
||||
}
|
||||
process_fields($row["fields"]);
|
||||
} elseif (strlen($_GET["create"])) {
|
||||
$row = table_status($_GET["create"]);
|
||||
if ($row["Engine"] == "InnoDB") {
|
||||
|
|
Loading…
Reference in a new issue