MysqlAdapter中getSqlType添加了有关smallint的流程分支
This commit is contained in:
parent
bd5dac2169
commit
d6c5f69b0e
|
@ -792,6 +792,7 @@ class MysqlAdapter extends PdoAdapter implements AdapterInterface
|
||||||
'tinyint' => static::INT_TINY,
|
'tinyint' => static::INT_TINY,
|
||||||
);
|
);
|
||||||
$limits = array(
|
$limits = array(
|
||||||
|
'smallint' => 5,
|
||||||
'int' => 11,
|
'int' => 11,
|
||||||
'bigint' => 20,
|
'bigint' => 20,
|
||||||
);
|
);
|
||||||
|
@ -809,6 +810,9 @@ class MysqlAdapter extends PdoAdapter implements AdapterInterface
|
||||||
}
|
}
|
||||||
return array('name' => 'int', 'limit' => $limit);
|
return array('name' => 'int', 'limit' => $limit);
|
||||||
break;
|
break;
|
||||||
|
case static::PHINX_TYPE_SMALL_INTEGER:
|
||||||
|
return array('name' => 'smallint', 'limit' => 5);
|
||||||
|
break;
|
||||||
case static::PHINX_TYPE_BIG_INTEGER:
|
case static::PHINX_TYPE_BIG_INTEGER:
|
||||||
return array('name' => 'bigint', 'limit' => 20);
|
return array('name' => 'bigint', 'limit' => 20);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user