You are here

function bat_unit_update_7101 in Booking and Availability Management Tools for Drupal 7

Create table 'bat_types_revision'.

File

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

Code

function bat_unit_update_7101() {
  db_create_table('bat_types_revision', drupal_get_schema_unprocessed('bat_unit', 'bat_types_revision'));
  $field = array(
    'description' => 'The current {bat_types_revision}.revision_id version identifier.',
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  );
  db_add_field('bat_types', 'revision_id', $field);
}