You are here

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

Create price field in rooms_booking table.

File

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

Code

function rooms_booking_update_7003() {
  $price = array(
    'description' => 'The total price for the booking.',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
    'initial' => 0,
  );
  db_add_field('rooms_bookings', 'price', $price);
  return t('Add field price in Rooms Booking table.');
}