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:
Peter Knut
2024-11-06 22:22:36 +01:00
parent 214d7745a7
commit ee26735ac6
10 changed files with 164 additions and 111 deletions

View File

@@ -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 {
}
}
}
}