public function DatabaseSchemaInterface::fieldExists in Schema 8
Check if a column exists in the given table.
Parameters
$table: The name of the table in drupal (no prefixing).
$name: The name of the column.
Return value
TRUE if the given column exists, otherwise FALSE.
File
- src/
DatabaseSchemaInterface.php, line 48 - Contains Drupal\schema\DatabaseSchemaInterface.
Class
- DatabaseSchemaInterface
- This interface describes public methods of \Drupal\Core\Database\Schema.
Namespace
Drupal\schemaCode
public function fieldExists($table, $column);