MongoDB: truncate

This commit is contained in:
Jakub Vrana 2014-01-11 18:29:47 -08:00
parent ed13006512
commit 5136b62e84
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ if ($adminer->homepage()) {
. "<input type='submit' name='check' value='" . lang('Check') . "'" . on_help("'CHECK TABLE'") . "> "
. "<input type='submit' name='repair' value='" . lang('Repair') . "'" . on_help("'REPAIR TABLE'") . "> "
: "")))
. (support("table") ? "<input type='submit' name='truncate' value='" . lang('Truncate') . "'" . confirm() . on_help($jush == "sqlite" ? "'DELETE'" : "'TRUNCATE" . ($jush == "pgsql" ? "'" : " TABLE'")) . "> " : "")
. "<input type='submit' name='truncate' value='" . lang('Truncate') . "'" . confirm() . on_help($jush == "sqlite" ? "'DELETE'" : "'TRUNCATE" . ($jush == "pgsql" ? "'" : " TABLE'")) . "> "
. "<input type='submit' name='drop' value='" . lang('Drop') . "'" . confirm() . on_help("'DROP TABLE'") . ">\n";
$databases = (support("scheme") ? $adminer->schemas() : $adminer->databases());
if (count($databases) != 1 && $jush != "sqlite") {

View file

@ -1,5 +1,5 @@
Adminer 4.0.3-dev:
MongoDB: insert
MongoDB: insert, truncate
SimpleDB, MongoDB: insert more fields at once
Adminer 4.0.2 (released 2014-01-11):