mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Move engines() to Driver
This commit is contained in:
@@ -348,10 +348,6 @@ if (isset($_GET["elastic"])) {
|
||||
//
|
||||
}
|
||||
|
||||
function engines() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function count_tables($databases) {
|
||||
$return = connection()->rootQuery('_aliases');
|
||||
return array("elastic" => ($return ? count($return) : 0));
|
||||
|
@@ -159,10 +159,6 @@ if (isset($_GET["firebird"])) {
|
||||
function db_collation($db, $collations) {
|
||||
}
|
||||
|
||||
function engines() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function logged_user() {
|
||||
$adminer = adminer();
|
||||
$credentials = $adminer->credentials();
|
||||
|
@@ -252,10 +252,6 @@ if (isset($_GET["imap"])) {
|
||||
function fk_support($table_status) {
|
||||
}
|
||||
|
||||
function engines() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {
|
||||
return connection()->create($name);
|
||||
}
|
||||
|
@@ -500,10 +500,6 @@ if (isset($_GET["mongo"])) {
|
||||
function fk_support($table_status) {
|
||||
}
|
||||
|
||||
function engines() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {
|
||||
if ($table == "") {
|
||||
connection()->_db->createCollection($name);
|
||||
|
@@ -368,10 +368,6 @@ if (isset($_GET["simpledb"])) {
|
||||
function fk_support($table_status) {
|
||||
}
|
||||
|
||||
function engines() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {
|
||||
return ($table == "" && sdb_request('CreateDomain', array('DomainName' => $name)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user