Progress on study group calcs

This commit is contained in:
2014-01-18 17:46:42 +11:00
parent 6a42a2830b
commit 4d5627f2d4

View File

@@ -146,7 +146,7 @@ function booking_update_7203() {
'sid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), '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_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'booking_studygroup_descrip' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE), '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'), 'primary key' => array('sid'),
); );
@@ -236,8 +236,7 @@ function booking_update_7204() {
* Add extra field to the study group sessions table * Add extra field to the study group sessions table
*/ */
function booking_update_7205() { 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);
} }