我尝试使用以下代码将字段“exp”迁移到数据类型 tinyint(2),我想使用数据类型 tinyint 使可见长度为 2。
$table->changeColumn('exp', 'integer', [
'limit' => MysqlAdapter::INT_TINY,
//is there any option to set visible length 2, by default it is taking length 4
//I tried 'length'=>4, but it overrides 'limit' and datatype becomes int(4)
'null' => false,
'default' => '0'
]);