ENHANCEMENT: Added databse name to output of dev/build (merged from r77265)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@77266 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-05-19 22:31:43 +00:00
parent 6179173d26
commit a1d17bc6e0

View File

@ -143,7 +143,11 @@ class DatabaseAdmin extends Controller {
if($quiet) {
DB::quiet();
} else {
echo "<h2>Building Database</h2>";
$conn = DB::getConn();
$databaseName = ($conn->hasMethod('currentDatabase')) ? $conn->currentDatabase() : "";
if(Director::is_cli()) echo "\n\nBuilding Database $databaseName\n\n";
else echo "<h2>Building Database $databaseName</h2>";
}
// Set up the initial database