components/mysql/Schema.php
protected function loadColumnSchema($info)
    {
        $column = parent::loadColumnSchema($info);

        if (!$column->isPrimaryKey) {
            if (($column->type === 'timestamp' || $column->type ==='datetime') && $info['default'] === 'current_timestamp()') {
                $column->defaultValue = new Expression('current_timestamp()');
            } elseif (isset($type) && $type === 'bit') {
                $column->defaultValue = bindec(trim($info['default'], 'b\''));
            } else {
                $column->defaultValue = $column->phpTypecast($info['default']);
            }
        }

        if (is_object($column)) {
            $column = new ColumnSchema(get_object_vars($column));
        }

        return $column;
    }
protected function loadColumnSchema($info)
    {
        $column = parent::loadColumnSchema($info);

        if (!$column->isPrimaryKey) {
            if (($column->type === 'timestamp' || $column->type ==='datetime') && $info['default'] === 'current_timestamp()') {
                $column->defaultValue = new Expression('current_timestamp()');
            } elseif (isset($type) && $type === 'bit') {
                $column->defaultValue = bindec(trim($info['default'], 'b\''));
            } else {
                $column->defaultValue = $column->phpTypecast($info['default']);
            }
        }

        if (is_object($column)) {
            $column = new ColumnSchema(get_object_vars($column));
        }

        return $column;
    }
Loads the column information into a [[ColumnSchema]] object.
@param array $info column information
@return ColumnSchema the column schema object