| Versionen | |
|---|---|
| drupal7 | public DatabaseSchema_pgsql::fieldSetNoDefault(&$ret, $table, $field) |
Set a field to have no default value.
$ret Array to which query results will be added.
$table The table to be altered.
$field The field to be altered.
includes/
<?php
public function fieldSetNoDefault(&$ret, $table, $field) {
$ret[] = update_sql('ALTER TABLE {' . $table . '} ALTER COLUMN ' . $field . ' DROP DEFAULT');
}
?>
Kommentare
Kommentar hinzufügen