yii\db\SchemaBuilderTrait::smallInteger PHP Метод

smallInteger() публичный Метод

Creates a smallint column.
С версии: 2.0.6
public smallInteger ( integer $length = null ) : ColumnSchemaBuilder
$length integer column size or precision definition. This parameter will be ignored if not supported by the DBMS.
Результат ColumnSchemaBuilder the column instance which can be further customized.
    public function smallInteger($length = null)
    {
        return $this->getDb()->getSchema()->createColumnSchemaBuilder(Schema::TYPE_SMALLINT, $length);
    }