diff --git a/cake/libs/model/datasources/dbo/dbo_mysql.php b/cake/libs/model/datasources/dbo/dbo_mysql.php index d4516afa1..c6a21b075 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysql.php +++ b/cake/libs/model/datasources/dbo/dbo_mysql.php @@ -395,7 +395,9 @@ class DboMysql extends DboSource { if (strpos($col, 'enum') !== false) { return "enum($limit)"; } - + if ($col == 'boolean') { + return $col; + } return 'text'; } /** diff --git a/cake/libs/model/datasources/dbo/dbo_mysqli.php b/cake/libs/model/datasources/dbo/dbo_mysqli.php index 6eb680e7a..4f87f86a5 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysqli.php +++ b/cake/libs/model/datasources/dbo/dbo_mysqli.php @@ -388,7 +388,9 @@ class DboMysqli extends DboSource { if (strpos($col, 'enum') !== false) { return "enum($limit)"; } - + if ($col == 'boolean') { + return $col; + } return 'text'; } /**