mirror of
https://github.com/vrana/adminer.git
synced 2026-03-04 11:31:34 +01:00
Refactor drivers definition and compilation
- Rename 'server' driver to 'mysql' - MySQL driver is no longer the required default - Fix compiled SQLite single-driver Adminer - Allow to compile only selected drivers
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerForeignSystem {
|
||||
|
||||
|
||||
function foreignKeys($table) {
|
||||
if (DRIVER == "server" && DB == "mysql") {
|
||||
if ((DRIVER == "server" || DRIVER == "mysql") && DB == "mysql") {
|
||||
switch ($table) {
|
||||
case "columns_priv": return array(array("table" => "user", "source" => array("Host", "User"), "target" => array("Host", "User")));
|
||||
case "db": return array(array("table" => "user", "source" => array("Host", "User"), "target" => array("Host", "User")));
|
||||
@@ -52,5 +52,5 @@ class AdminerForeignSystem {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user