generateInputField and boolean

I've looked in the "generateInputField" function, and saw that the following lines of code:

if($column->type==='boolean')

  return "CHtml::activeCheckBox($model, '{$column->name}')";

Now I'm wondering where I can define a field to be a boolean, because mysql doesn't offer that field type to me (I use Navicat for database editing)?

This is PHP type. Internally, if your column type contains the token 'bool', it will be considered as a boolean typed column.

Quote

This is PHP type. Internally, if your column type contains the token 'bool', it will be considered as a boolean typed column.

Sorry, but I think, I don't understand what you mean. All my "boolean" fields are named like "booPublish" or "booActive". They are tinyint fields with a length of 1. Do they have too be named like "boolPublish"?

I mean their column type, not their column name.

Where can I set the column type?

In PhpMyAdmin you get a good overview about the possible types of mysql…