function DatabaseSchema_pgsql::dropPrimaryKey

Overrides DatabaseSchema::dropPrimaryKey

File

includes/database/pgsql/schema.inc, line 654

Class

DatabaseSchema_pgsql

Code

public function dropPrimaryKey($table) {
    if (!$this->constraintExists($table, 'pkey')) {
        return FALSE;
    }
    $this->connection
        ->query('ALTER TABLE {' . $table . '} DROP CONSTRAINT ' . $this->ensureIdentifiersLength($table, '', 'pkey'));
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.