If I define my id (PK) for MySQL (InnoDB) following way:
[sql]
CREATE TABLE IF NOT EXISTS xxx.my_news_image (
id INT(10) NOT NULL AUTO_INCREMENT , //…
[/sql]
Gii recognize id as integer.
For following definition
[sql]
CREATE TABLE IF NOT EXISTS xxx.my_news_image (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT ,
[/sql]
Gii recognize id as string.
Any reason why this happens? Is this behavior, adding UNSIGNED to integer force Gii to generate string, a bug or feature?