src/Db/Migration.php
public function dropPrimaryKey($name, $table)
    {
        $cmdPromise = $this->createCommand()->dropPrimaryKey($name, $table)->execute();
        return $this->execPromise($cmdPromise, "drop primary key $name");
    }
public function dropPrimaryKey($name, $table)
    {
        $cmdPromise = $this->createCommand()->dropPrimaryKey($name, $table)->execute();
        return $this->execPromise($cmdPromise, "drop primary key $name");
    }
Builds and executes a SQL statement for dropping a primary key.
@param string $name the name of the primary key constraint to be removed.
@param string $table the table that the primary key constraint will be removed from.
@return LazyPromiseInterface