Skip to content
Permalink
Browse files

Keep default=false for boolean columns

  • Loading branch information...
remidewitte committed Mar 1, 2013
1 parent 1d529c1 commit e2e5dfb91ed83403d0715583ea1f0ada79d37c25
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/CakeSchema.php
@@ -626,7 +626,7 @@ protected function _columns(&$Obj) {
unset($value['limit']);
}
if (isset($value['default']) && ($value['default'] === '' || $value['default'] === false)) {
if (isset($value['default']) && ($value['default'] === '' || ($value['default'] === false && $value['type'] != 'boolean'))) {
unset($value['default']);
}
if (empty($value['length'])) {

0 comments on commit e2e5dfb

Please sign in to comment.
You can’t perform that action at this time.