Revert 20045.

This commit is contained in:
Wilmer Arambula
2023-11-02 08:28:05 -03:00
parent 11c80bfa47
commit 0263c19833
4 changed files with 1 additions and 256 deletions

View File

@ -3,7 +3,6 @@ Yii Framework 2 Change Log
2.0.50 under development
------------------------
- Bug #20045: Fix type `boolean` in `MySQL` (terabytesoftw)
- Bug #20040: Fix type `boolean` in `MSSQL` (terabytesoftw)
- Bug #20005: Fix `yii\console\controllers\ServeController` to specify the router script (terabytesoftw)
- Bug #19060: Fix `yii\widgets\Menu` bug when using Closure for active item and adding additional tests in `tests\framework\widgets\MenuTest` (atrandafir)

View File

@ -279,7 +279,7 @@ SQL;
if (isset($values[1])) {
$column->scale = (int) $values[1];
}
if ($column->size === 1 && ($type === 'tinyint' || $type === 'bit')) {
if ($column->size === 1 && $type === 'bit') {
$column->type = 'boolean';
} elseif ($type === 'bit') {
if ($column->size > 32) {