Why is pk defined as ‘int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY’?
Shouldn’t it be an unsigned int?
Like
‘INT UNSIGNED AUTO_INCREMENT PRIMARY KEY’
yii/framework/db/schema/mysql/CMysqlSchema.php line 25
Why is pk defined as ‘int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY’?
Shouldn’t it be an unsigned int?
Like
‘INT UNSIGNED AUTO_INCREMENT PRIMARY KEY’
yii/framework/db/schema/mysql/CMysqlSchema.php line 25
Hi
Int(11) takes 4 bytes, exactly the size of integers that 32bit PHP can manipulates
Thanks for the info.