debug
This commit is contained in:
@@ -14,7 +14,7 @@ function booking_admin()
|
||||
//create the mysql view booking_person_view if necessary
|
||||
try {
|
||||
$sqlview_check = db_query("SELECT 1 FROM {booking_person_view}")->fetchAssoc();
|
||||
//watchdog('booking_debug', "<pre>SQL View booking_person_view check\n@info</pre>", array('@info' => print_r( $sqlview_check, true)));
|
||||
watchdog('booking_debug', "<pre>SQL View booking_person_view check\n@info</pre>", array('@info' => print_r( $sqlview_check, true)));
|
||||
}
|
||||
catch (Exception $e) {
|
||||
watchdog('booking_debug', "<pre>SQL View booking_person_view check does not exist\n@info</pre>", array('@info' => $e->getMessage()));
|
||||
|
@@ -554,6 +554,8 @@ function booking_update_7234() {
|
||||
foreach ($fields as $field) {
|
||||
db_drop_field('booking_person', $field);
|
||||
}
|
||||
//update the view to match the new table definition
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
/**
|
||||
* Add email address for guardian contact info
|
||||
@@ -561,6 +563,8 @@ function booking_update_7234() {
|
||||
function booking_update_7235() {
|
||||
$spec = array('type' => 'varchar', 'length' => '250', 'not null' => FALSE);
|
||||
db_add_field('booking_person', 'booking_guardian_email', $spec);
|
||||
//update the view to match the new table definition
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user