add guardian email address

This commit is contained in:
2016-06-11 14:19:27 +10:00
parent b816de11d2
commit 5e6a06f97a
3 changed files with 108 additions and 96 deletions

View File

@@ -539,7 +539,7 @@ function booking_update_7233() {
}
/**
* Remove deprecated passport/flight details
* Remove deprecated passport and flight details
*/
function booking_update_7234() {
$fields = array(
@@ -555,7 +555,13 @@ function booking_update_7234() {
db_drop_field('booking_person', $field);
}
}
/**
* Add email address for guardian contact info
*/
function booking_update_7235() {
$spec = array('type' => 'varchar', 'length' => '250', 'not null' => FALSE);
db_add_field('booking_person', 'booking_guardian_email', $spec);
}
/**
* Implementation of hook_install().
@@ -656,6 +662,7 @@ function booking_schema() {
//emergency contact info
'booking_guardian_name' => array('type' => 'varchar', 'length' => '100', 'not null' => TRUE),
'booking_guardian_type' => array('type' => 'varchar', 'length' => '100', 'not null' => TRUE),
'booking_guardian_email' => array('type' => 'varchar', 'length' => '250', 'not null' => FALSE),
'booking_guardian_phone' => array('type' => 'varchar', 'length' => '50', 'not null' => FALSE),
'booking_guardian_phone_alt' => array('type' => 'varchar', 'length' => '50', 'not null' => FALSE),
'booking_medicare' => array('type' => 'varchar', 'length' => '50', 'not null' => FALSE),