function DatabaseSchema_pgsql::dropUniqueKey
Overrides DatabaseSchema::dropUniqueKey
File
-
includes/
database/ pgsql/ schema.inc, line 674
Class
Code
public function dropUniqueKey($table, $name) {
if (!$this->constraintExists($table, $name . '_key')) {
return FALSE;
}
$this->connection
->query('ALTER TABLE {' . $table . '} DROP CONSTRAINT "' . $this->ensureIdentifiersLength($table, $name, 'key') . '"');
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.