You are here

function rooms_booking_update_7001 in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Create booking_status field in rooms_booking table.

File

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

Code

function rooms_booking_update_7001() {
  $booking_status = array(
    'description' => 'The booking status (1 published, 0 unpublished).',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
    'initial' => 1,
  );
  db_add_field('rooms_bookings', 'booking_status', $booking_status);
  return t('Add field booking_status in Rooms Booking table.');
}