Changed colouring of db/build to be more appropriate for the actual meaning of the messages.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40803 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Jeremy Shipman 2007-08-24 02:47:37 +00:00
parent 5b865997e0
commit 46c9efaecc
5 changed files with 6 additions and 6 deletions

View File

@ -1596,7 +1596,7 @@ class DataObject extends Controller {
$obj->write();
}
if(!Database::$supressOutput) {
echo "<li style=\"color: orange\">Added default records to $baseClass table</li>";
echo "<li style=\"color: green\">Added default records to $baseClass table</li>";
}
}
}

View File

@ -36,7 +36,7 @@ class ErrorPage extends Page {
if(!Database::$supressOutput) {
echo "<li style=\"color: orange\">404 page created</li>";
echo "<li style=\"color: green\">404 page created</li>";
}
}
}

View File

@ -207,7 +207,7 @@ class MySQLDatabase extends Database {
public function checkAndRepairTable($tableName) {
if(!$this->runTableCheckCommand("CHECK TABLE `$tableName`")) {
if(!Database::$supressOutput) {
echo "<li style=\"color: orange\">Table $tableName: repaired</li>";
echo "<li style=\"color: blue\">Table $tableName: repaired</li>";
}
return $this->runTableCheckCommand("REPAIR TABLE `$tableName` USE_FRM");

View File

@ -408,7 +408,7 @@ class SiteTree extends DataObject {
$homepage->flushCache();
if(!Database::$supressOutput) {
echo "<li style=\"color: orange\">Home page created</li>";
echo "<li style=\"color: green\">Home page created</li>";
}
}
@ -422,7 +422,7 @@ class SiteTree extends DataObject {
$aboutus->publish("Stage", "Live");
if(!Database::$supressOutput) {
echo "<li style=\"color: orange\">About Us created</li>";
echo "<li style=\"color: green\">About Us created</li>";
}
$contactus = new Page();

View File

@ -428,7 +428,7 @@ class Member extends DataObject {
Security::findAnAdministrator($_REQUEST['username'], $_REQUEST['password']);
if(!Database::$supressOutput) {
echo "<li style=\"color: orange\">Added admin account</li>";
echo "<li style=\"color: green\">Added admin account</li>";
}
}
}