Added date of birth, food requriements, t-shirt size and medical alert info to the users table as student fields

This commit is contained in:
jacob 2011-02-16 19:08:58 +00:00
parent 93f4703b71
commit dfb54ec9df
3 changed files with 12 additions and 3 deletions

View File

@ -1 +1 @@
226
227

5
db/db.update.227.sql Normal file
View File

@ -0,0 +1,5 @@
ALTER TABLE `users`
ADD `dateofbirth` DATE NOT NULL DEFAULT '0000-00-00' COMMENT 'student',
ADD `foodreq` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'student',
ADD `tshirt` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'student',
ADD `medicalalert` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'student';

View File

@ -305,7 +305,7 @@ function user_get_role_fields($role){
}
break;
case 'participant':
$fields = array('grade', 'schools_id');
$fields = array('grade', 'schools_id', 'foodreq', 'tshirt', 'medicalalert', 'dateofbirth');
break;
case 'fair':
$fields = array('fairs_id');
@ -357,7 +357,11 @@ function user_get_field_info($noConference = false){
'schools_id' => array('label' => 'School', 'group' => 'Personal Information'),
'grade' => array('label' => 'Grade', 'group' => 'Personal Information'),
'special_awards' => array('label' => 'Special Awards', 'group' => 'Judges'),
'volunteer_positions' => array('label' => 'Volunteer Positions', 'group' => 'Volunteers')
'volunteer_positions' => array('label' => 'Volunteer Positions', 'group' => 'Volunteers'),
'foodreq' => array('label' => 'Special Food Requirements', 'group' => 'Personal Information'),
'tshirt' => array('label' => 'T-shirt Size', 'group' => 'Personal Information'),
'medicalalert' => array('label' => 'Medical Alert Info', 'group' => 'Personal Information'),
'dateofbirth' => array('label' => 'Date of Birth', 'group' => 'Personal Information')
);
if($noConference){
$returnval['cat_prefs'] = array('label' => 'Category Preferences', 'group' => 'Judges');