db_field_set_no_default

Versions
6
db_field_set_no_default(&$ret, $table, $field)
7
db_field_set_no_default($table, $field)

Set a field to have no default value.

Parameters

$ret Array to which query results will be added.

$table The table to be altered.

$field The field to be altered.

Related topics

▾ 1 function calls db_field_set_no_default()

system_update_6019 in modules/system/system.install
Reconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.

Code

includes/database.pgsql.inc, line 750

<?php
function db_field_set_no_default(&$ret, $table, $field) {
  $ret[] = update_sql('ALTER TABLE {'. $table .'} ALTER COLUMN '. $field .' DROP DEFAULT');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.