From 5b865997e0b00e7ef8edffde9446c50101dd6efc Mon Sep 17 00:00:00 2001 From: Jeremy Shipman Date: Fri, 24 Aug 2007 02:29:32 +0000 Subject: [PATCH] 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@40801 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Database.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/model/Database.php b/core/model/Database.php index e56af903f..72bbf8d32 100755 --- a/core/model/Database.php +++ b/core/model/Database.php @@ -205,7 +205,7 @@ abstract class Database extends Object { if(!isset($this->tableList[strtolower($table)])) { $this->transCreateTable($table); if(!Database::$supressOutput) { - echo "
  • Table $table: created
  • "; + echo "
  • Table $table: created
  • "; } } else { $this->checkAndRepairTable($table); @@ -240,7 +240,7 @@ abstract class Database extends Object { } $this->renameTable($table, "_obsolete_{$table}$suffix"); if(!Database::$supressOutput) { - echo "
  • Table $table: renamed to _obsolete_{$table}$suffix
  • "; + echo "
  • Table $table: renamed to _obsolete_{$table}$suffix
  • "; } } } @@ -267,12 +267,12 @@ abstract class Database extends Object { if($newTable || !isset($this->indexList[$table][$index])) { $this->transCreateIndex($table, $index, $spec); if(!Database::$supressOutput) { - echo "
  • Index $table.$index: created as $spec
  • "; + echo "
  • Index $table.$index: created as $spec
  • "; } } else if($this->indexList[$table][$index] != $spec) { $this->transAlterIndex($table, $index, $spec); if(!Database::$supressOutput) { - echo "
  • Index $table.$index: changed to $spec (from {$this->indexList[$table][$index]})
  • "; + echo "
  • Index $table.$index: changed to $spec (from {$this->indexList[$table][$index]})
  • "; } } } @@ -303,14 +303,14 @@ abstract class Database extends Object { $this->transCreateField($table, $field, $spec); Profiler::unmark('createField'); if(!Database::$supressOutput) { - echo "
  • Field $table.$field: created as $spec
  • "; + echo "
  • Field $table.$field: created as $spec
  • "; } } else if($this->fieldList[$table][$field] != $spec) { Profiler::mark('alterField'); $this->transAlterField($table, $field, $spec); Profiler::unmark('alterField'); if(!Database::$supressOutput) { - echo "
  • Field $table.$field: changed to $spec (from {$this->fieldList[$table][$field]})
  • "; + echo "
  • Field $table.$field: changed to $spec (from {$this->fieldList[$table][$field]})
  • "; } } Profiler::unmark('requireField');