You are here

function bat_unit_update_7100 in Booking and Availability Management Tools for Drupal 7

Units should have type_id set to null if saved without a reference to a type_id.

File

modules/bat_unit/bat_unit.install, line 351
Sets up the base table for our entity and a table to store information about the entity types.

Code

function bat_unit_update_7100() {
  db_change_field('bat_units', 'type_id', 'type_id', array(
    'description' => 'Identifier for this unit\'s type.',
    'type' => 'int',
    'unsigned' => TRUE,
    'default' => NULL,
  ));
}