2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
@@ -628,6 +628,15 @@ public function fieldSetNoDefault($table, $field) {
$this->connection->query('ALTER TABLE {'.$table.'} ALTER COLUMN "'.$field.'" DROP DEFAULT');
}
/**
* {@inheritdoc}
*/
publicfunctionfieldExists($table,$column){
$prefixInfo=$this->getPrefixInfo($table);
return(bool)$this->connection->query("SELECT 1 FROM pg_attribute WHERE attrelid = :key::regclass AND attname = :column AND NOT attisdropped AND attnum > 0",array(':key'=>$prefixInfo['schema'].'.'.$prefixInfo['table'],':column'=>$column))->fetchField();