| Versionen | |
|---|---|
| drupal7 | public DatabaseSchema_sqlite::fieldSetNoDefault(&$ret, $table, $field) |
Set a field to have no default value.
This implementation can't use ALTER TABLE directly, because SQLite only supports a limited subset of that command.
$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) {
$new_schema = $this->introspectSchema($table);
unset($new_schema['fields'][$field]['default']);
$this->alterTable($ret, $table, $new_schema);
}
?>
Kommentare
Kommentar hinzufügen