src/Migration.php
public function dropAutoIncrement($table, $column, $columnType, $property = null)
    {
        $tip = "drop auto_increment on {$table}";
        $sql = $this->db->getQueryBuilder()->alterColumn($table, $column, $columnType);
        (null !== $property) && $sql .= " $property ";
        $sql .= "NOT NULL";

        $time = $this->beginCommand($tip);
        $this->db->createCommand()->setSql($sql)->execute();
        $this->endCommand($time);
    }
public function dropAutoIncrement($table, $column, $columnType, $property = null)
    {
        $tip = "drop auto_increment on {$table}";
        $sql = $this->db->getQueryBuilder()->alterColumn($table, $column, $columnType);
        (null !== $property) && $sql .= " $property ";
        $sql .= "NOT NULL";

        $time = $this->beginCommand($tip);
        $this->db->createCommand()->setSql($sql)->execute();
        $this->endCommand($time);
    }
删除自动增长
@param string $table 表名{{%tableName}}
@param string $column 字段名称
@param string $columnType 字段类型
@param boolean $property 字段属性