mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
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:
@@ -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") {
|
||||
|
Reference in New Issue
Block a user