Keep default=false for boolean columns

This commit is contained in:
Rémi Dewitte 2013-03-01 15:43:14 +01:00
parent 1d529c1dd2
commit e2e5dfb91e

View file

@ -626,7 +626,7 @@ class CakeSchema extends Object {
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'])) {