Skip to content

Commit

Permalink
#117 Change field type. Added extra condition to the change column ty…
Browse files Browse the repository at this point in the history
…pe feature
  • Loading branch information
gmansilla committed Apr 12, 2013
1 parent 0c86355 commit c572d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/CakeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ protected function _alterTable($type, $tables) {
));
break;
case 'change':
if (!isset($col['type'])) {
if (!isset($col['type']) || $col['type'] == $tableFields[$field]['type']) {
$def = array_merge($tableFields[$field], $col);
} else {
$def = $col;
Expand Down

0 comments on commit c572d93

Please sign in to comment.