diff --git a/cake/libs/model/datasources/dbo/dbo_mysql.php b/cake/libs/model/datasources/dbo/dbo_mysql.php index 26e05b1f105..c688477541b 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysql.php +++ b/cake/libs/model/datasources/dbo/dbo_mysql.php @@ -264,9 +264,9 @@ function alterSchema($compare, $table = null) { case 'add': foreach ($column as $field => $col) { $col['name'] = $field; - $alter = 'ADD '.$this->buildColumn($col); + $alter = 'ADD ' . $this->buildColumn($col); if (isset($col['after'])) { - $alter .= ' AFTER '. $this->name($col['after']); + $alter .= ' AFTER ' . $this->name($col['after']); } $colList[] = $alter; } @@ -274,7 +274,7 @@ function alterSchema($compare, $table = null) { case 'drop': foreach ($column as $field => $col) { $col['name'] = $field; - $colList[] = 'DROP '.$this->name($field); + $colList[] = 'DROP ' . $this->name($field); } break; case 'change': @@ -282,7 +282,7 @@ function alterSchema($compare, $table = null) { if (!isset($col['name'])) { $col['name'] = $field; } - $colList[] = 'CHANGE '. $this->name($field).' '.$this->buildColumn($col); + $colList[] = 'CHANGE ' . $this->name($field) . ' ' . $this->buildColumn($col); } break; }