diff --git a/booking.install b/booking.install index 532c3d2..4ba54f0 100644 --- a/booking.install +++ b/booking.install @@ -146,7 +146,7 @@ function booking_update_7203() { 'sid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_studygroup_descrip' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE), - 'booking_num_group_sessions' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), + 'booking_num_group_sessions' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10', 'default' => 1), ), 'primary key' => array('sid'), ); @@ -236,8 +236,7 @@ function booking_update_7204() { * Add extra field to the study group sessions table */ function booking_update_7205() { - $spec = array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'); - db_add_field( 'booking_studygroup_list', 'booking_num_group_sessions', $spec); + }