Added db write to study group calcs
This commit is contained in:
@@ -140,7 +140,7 @@ function booking_update_7202() {
|
||||
* Add tables for study group calculations
|
||||
*/
|
||||
function booking_update_7203() {
|
||||
//This lists all the study group sessions
|
||||
//This lists all the study groups
|
||||
$booking_studygroup_list = array(
|
||||
'fields' => array(
|
||||
'sid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||
@@ -158,6 +158,7 @@ function booking_update_7203() {
|
||||
'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_studygroup_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||
'booking_session_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||
'booking_is_leader' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE),
|
||||
'booking_is_helper' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE),
|
||||
),
|
||||
@@ -239,6 +240,14 @@ function booking_update_7205() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Add another field to the booking_studygroup_mapping table
|
||||
*/
|
||||
function booking_update_7206() {
|
||||
$spec = array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10', 'default' => 0);
|
||||
db_add_field( 'booking_studygroup_mapping', 'booking_session_id', $spec);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Implementation of hook_install().
|
||||
|
Reference in New Issue
Block a user