Added tables for study group calculations
This commit is contained in:
@@ -140,8 +140,17 @@ function booking_update_7202() {
|
|||||||
* Add tables for study group calculations
|
* Add tables for study group calculations
|
||||||
*/
|
*/
|
||||||
function booking_update_7203() {
|
function booking_update_7203() {
|
||||||
|
//This lists all the study group sessions
|
||||||
|
$booking_studygroup_list = array(
|
||||||
|
'fields' => array(
|
||||||
|
'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),
|
||||||
|
),
|
||||||
|
'primary key' => array('sid'),
|
||||||
|
);
|
||||||
|
|
||||||
//TODO: Figure out what fields we need
|
//this maps people to particular study groups
|
||||||
$booking_studygroup_mapping = array(
|
$booking_studygroup_mapping = array(
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
'sid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
'sid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||||
@@ -154,6 +163,24 @@ function booking_update_7203() {
|
|||||||
'primary key' => array('sid'),
|
'primary key' => array('sid'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//this defines the number of leader/helper sessions for a particular person
|
||||||
|
$booking_leadhelp_list = array(
|
||||||
|
'fields' => array(
|
||||||
|
'id' => 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_node_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||||
|
'booking_total_lead' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||||
|
'booking_total_help' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||||
|
'booking_available_lead' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||||
|
'booking_available_help' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||||
|
),
|
||||||
|
'primary key' => array('id'),
|
||||||
|
);
|
||||||
|
|
||||||
|
db_create_table('booking_studygroup_list', $booking_studygroup_list);
|
||||||
|
db_create_table('booking_studygroup_mapping', $booking_studygroup_mapping);
|
||||||
|
db_create_table('booking_leadhelp_list', $booking_leadhelp_list);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user