mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Elasticsearch: check for valid mappings
This commit is contained in:
@@ -280,13 +280,15 @@ if (isset($_GET["elastic"])) {
|
|||||||
if (!$mappings) {
|
if (!$mappings) {
|
||||||
$mappings = $result[$connection->_db]['mappings'][$table]['properties'];
|
$mappings = $result[$connection->_db]['mappings'][$table]['properties'];
|
||||||
}
|
}
|
||||||
foreach ($mappings as $name => $field) {
|
if ($mappings) {
|
||||||
$return[$name] = array(
|
foreach ($mappings as $name => $field) {
|
||||||
"field" => $name,
|
$return[$name] = array(
|
||||||
"full_type" => $field["type"],
|
"field" => $name,
|
||||||
"type" => $field["type"],
|
"full_type" => $field["type"],
|
||||||
"privileges" => array("insert" => 1, "select" => 1, "update" => 1),
|
"type" => $field["type"],
|
||||||
);
|
"privileges" => array("insert" => 1, "select" => 1, "update" => 1),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
Reference in New Issue
Block a user