mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
MongoDB: truncate
This commit is contained in:
@@ -123,7 +123,7 @@ if ($adminer->homepage()) {
|
|||||||
. "<input type='submit' name='check' value='" . lang('Check') . "'" . on_help("'CHECK TABLE'") . "> "
|
. "<input type='submit' name='check' value='" . lang('Check') . "'" . on_help("'CHECK TABLE'") . "> "
|
||||||
. "<input type='submit' name='repair' value='" . lang('Repair') . "'" . on_help("'REPAIR 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";
|
. "<input type='submit' name='drop' value='" . lang('Drop') . "'" . confirm() . on_help("'DROP TABLE'") . ">\n";
|
||||||
$databases = (support("scheme") ? $adminer->schemas() : $adminer->databases());
|
$databases = (support("scheme") ? $adminer->schemas() : $adminer->databases());
|
||||||
if (count($databases) != 1 && $jush != "sqlite") {
|
if (count($databases) != 1 && $jush != "sqlite") {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
Adminer 4.0.3-dev:
|
Adminer 4.0.3-dev:
|
||||||
MongoDB: insert
|
MongoDB: insert, truncate
|
||||||
SimpleDB, MongoDB: insert more fields at once
|
SimpleDB, MongoDB: insert more fields at once
|
||||||
|
|
||||||
Adminer 4.0.2 (released 2014-01-11):
|
Adminer 4.0.2 (released 2014-01-11):
|
||||||
|
Reference in New Issue
Block a user