function db_drop_primary_key

Drops the primary key of a database table.

Parameters

$table: Name of the table to be altered.

Related topics

7 calls to db_drop_primary_key()

File

drupal/includes/database/database.inc, line 2959
Core systems for the database layer.

Code

function db_drop_primary_key($table) {
  return Database::getConnection()
    ->schema()
    ->dropPrimaryKey($table);
}