From 4d5627f2d439dcb0fb4e234fd4983eb045984b95 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 18 Jan 2014 17:46:42 +1100 Subject: [PATCH] Progress on study group calcs --- booking.install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/booking.install b/booking.install index 532c3d2..4ba54f0 100644 --- a/booking.install +++ b/booking.install @@ -146,7 +146,7 @@ function booking_update_7203() { 'sid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_studygroup_descrip' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE), - 'booking_num_group_sessions' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), + 'booking_num_group_sessions' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10', 'default' => 1), ), 'primary key' => array('sid'), ); @@ -236,8 +236,7 @@ function booking_update_7204() { * Add extra field to the study group sessions table */ function booking_update_7205() { - $spec = array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'); - db_add_field( 'booking_studygroup_list', 'booking_num_group_sessions', $spec); + }