diff --git a/core/model/DatabaseAdmin.php b/core/model/DatabaseAdmin.php index 971c689ee..11ae278a9 100644 --- a/core/model/DatabaseAdmin.php +++ b/core/model/DatabaseAdmin.php @@ -161,10 +161,13 @@ class DatabaseAdmin extends Controller { DB::quiet(); } else { $conn = DB::getConn(); + // Assumes database class is like "MySQLDatabase" or "MSSQLDatabase" (suffixed with "Database") + $dbType = substr(get_class($conn), 0, -8); + $dbVersion = $conn->getVersion(); $databaseName = (method_exists($conn, 'currentDatabase')) ? $conn->currentDatabase() : ""; - if(Director::is_cli()) echo "\n\nBuilding Database $databaseName\n\n"; - else echo "