forked from science-ation/science-ation
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:
parent
93f4703b71
commit
dfb54ec9df
@ -1 +1 @@
|
|||||||
226
|
227
|
||||||
|
5
db/db.update.227.sql
Normal file
5
db/db.update.227.sql
Normal 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';
|
@ -305,7 +305,7 @@ function user_get_role_fields($role){
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'participant':
|
case 'participant':
|
||||||
$fields = array('grade', 'schools_id');
|
$fields = array('grade', 'schools_id', 'foodreq', 'tshirt', 'medicalalert', 'dateofbirth');
|
||||||
break;
|
break;
|
||||||
case 'fair':
|
case 'fair':
|
||||||
$fields = array('fairs_id');
|
$fields = array('fairs_id');
|
||||||
@ -357,7 +357,11 @@ function user_get_field_info($noConference = false){
|
|||||||
'schools_id' => array('label' => 'School', 'group' => 'Personal Information'),
|
'schools_id' => array('label' => 'School', 'group' => 'Personal Information'),
|
||||||
'grade' => array('label' => 'Grade', 'group' => 'Personal Information'),
|
'grade' => array('label' => 'Grade', 'group' => 'Personal Information'),
|
||||||
'special_awards' => array('label' => 'Special Awards', 'group' => 'Judges'),
|
'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){
|
if($noConference){
|
||||||
$returnval['cat_prefs'] = array('label' => 'Category Preferences', 'group' => 'Judges');
|
$returnval['cat_prefs'] = array('label' => 'Category Preferences', 'group' => 'Judges');
|
||||||
|
Loading…
Reference in New Issue
Block a user