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 "

Building Database $databaseName

"; + if(Director::is_cli()) echo sprintf("\n\nBuilding database %s using %s %s\n\n", $databaseName, $dbType, $dbVersion); + else echo sprintf("

Building database %s using %s %s

", $databaseName, $dbType, $dbVersion); } // Set up the initial database