From 1d52a4c1d5ceebc89b7eb73be7e386d97c6a0092 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 9 Jan 2014 22:28:42 -0800 Subject: [PATCH] Document changes --- adminer/drivers/elastic.inc.php | 8 ++++---- changes.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/adminer/drivers/elastic.inc.php b/adminer/drivers/elastic.inc.php index ec5c3aab..72b4a0f2 100644 --- a/adminer/drivers/elastic.inc.php +++ b/adminer/drivers/elastic.inc.php @@ -303,11 +303,11 @@ if (isset($_GET["elastic"])) { */ function drop_tables($tables) { global $connection; - $result = true; - foreach ($tables as $table) { // convert to bulk api - $result = $result && $connection->query(urlencode($table), array(), 'DELETE'); + $return = true; + foreach ($tables as $table) { //! convert to bulk api + $return = $return && $connection->query(urlencode($table), array(), 'DELETE'); } - return $result; + return $return; } $jush = "elastic"; diff --git a/changes.txt b/changes.txt index 093eaf74..813e995d 100644 --- a/changes.txt +++ b/changes.txt @@ -2,6 +2,7 @@ Adminer 4.0.1-dev: Fix compiled version of Elasticsearch Don't use type=number if a SQL function is used MongoDB: Count tables, display ObjectIds, sort, limit, offset, count rows +Elasticsearch: Create and drop DB, drop table Adminer 4.0.0 (released 2014-01-08): Driver for SimpleDB, MongoDB and Elasticsearch