Builds and executes a SQL statement for dropping a primary key.
public dropPrimaryKey ( string $name, string $table ) | ||
$name | string | the name of the primary key constraint to be removed. |
$table | string | the table that the primary key constraint will be removed from. |
/** * Builds and executes a SQL statement for dropping a primary key. * @param string $table the table that the primary key constraint will be removed from. * @param string $name the name of the primary key constraint to be removed. */ public function dropPrimaryKey($table, $name = null) { $name = $name ?: $this->getNamePrimaryKey($table); parent::dropPrimaryKey($name, $table); }