You are here

function bat_event_update_7101 in Booking and Availability Management Tools for Drupal 7

Add event state machine name field.

File

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

Code

function bat_event_update_7101() {
  $field = array(
    'description' => 'Machine name.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'initial' => 'machine_name',
  );
  db_add_field('bat_event_state', 'machine_name', $field);
}