diff --git a/booking.admin.inc b/booking.admin.inc index 1a82b05..8617e1b 100644 --- a/booking.admin.inc +++ b/booking.admin.inc @@ -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', "
SQL View booking_person_view check\n@info
", array('@info' => print_r( $sqlview_check, true))); + watchdog('booking_debug', "
SQL View booking_person_view check\n@info
", array('@info' => print_r( $sqlview_check, true))); } catch (Exception $e) { watchdog('booking_debug', "
SQL View booking_person_view check does not exist\n@info
", array('@info' => $e->getMessage())); diff --git a/booking.install b/booking.install index 1f231ab..e08a2ff 100644 --- a/booking.install +++ b/booking.install @@ -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(); } /**