function rooms_unit_update_7012 in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Adds weekly_price and monthly_price to Bookable units.
File
- modules/
rooms_unit/ rooms_unit.install, line 652 - Sets up the base table for our entity and a table to store information about the entity types.
Code
function rooms_unit_update_7012() {
db_add_field('rooms_units', 'weekly_price', array(
'description' => 'The default cost per week for the unit',
'type' => 'numeric',
'not null' => TRUE,
'precision' => 10,
'scale' => 2,
'default' => 0,
));
db_add_field('rooms_units', 'monthly_price', array(
'description' => 'The default cost per month for the unit',
'type' => 'numeric',
'not null' => TRUE,
'precision' => 10,
'scale' => 2,
'default' => 0,
));
}