add more detail to study group definitions and email token
This commit is contained in:
@@ -800,6 +800,17 @@ function booking_update_7255() {
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add fields for study group definitions
|
||||
*/
|
||||
function booking_update_7256() {
|
||||
$spec = array('type' => 'varchar', 'length' => '500', 'not null' => FALSE);
|
||||
db_add_field('booking_studygroup_list', 'booking_studygroup_weekday', $spec);
|
||||
db_add_field('booking_studygroup_list', 'booking_studygroup_explanation', $spec);
|
||||
//update the view to match the new table definition
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_install().
|
||||
*/
|
||||
@@ -1118,13 +1129,15 @@ function booking_schema() {
|
||||
),
|
||||
'primary key' => array('tid'),
|
||||
);
|
||||
|
||||
|
||||
//This lists all the study groups
|
||||
$schema['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),
|
||||
'booking_studygroup_weekday' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE),
|
||||
'booking_studygroup_explanation' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE),
|
||||
'booking_num_group_sessions' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10', 'default' => 1),
|
||||
'booking_is_readinggroup' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE),
|
||||
),
|
||||
|
Reference in New Issue
Block a user