mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Fix import without primary key (fix #1017, regression from 5.1.1)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
## Adminer dev
|
## Adminer dev
|
||||||
- Fix search anywhere (bug #1004, regression from 5.1.1)
|
- Fix search anywhere (bug #1004, regression from 5.1.1)
|
||||||
|
- Fix import without primary key (bug #1017, regression from 5.1.1)
|
||||||
|
|
||||||
## Adminer 5.2.0 (released 2025-04-08)
|
## Adminer 5.2.0 (released 2025-04-08)
|
||||||
- Autocomplete SQL commands
|
- Autocomplete SQL commands
|
||||||
|
@@ -54,7 +54,7 @@ if ($_GET["val"] && is_ajax()) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$primary = $unselected = null;
|
$primary = $unselected = array();
|
||||||
foreach ($indexes as $index) {
|
foreach ($indexes as $index) {
|
||||||
if ($index["type"] == "PRIMARY") {
|
if ($index["type"] == "PRIMARY") {
|
||||||
$primary = array_flip($index["columns"]);
|
$primary = array_flip($index["columns"]);
|
||||||
|
Reference in New Issue
Block a user