| Versionen | |
|---|---|
| drupal6 – drupal7 | db_field_set_no_default(&$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
function db_field_set_no_default(&$ret, $table, $field) {
$ret[] = update_sql('ALTER TABLE {' . $table . '} ALTER COLUMN ' . $field . ' DROP DEFAULT');
}
?>
Kommentare
Kommentar hinzufügen