From b85f17b362a0e79a5294793230224399e36c1cef Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 29 Jun 2017 16:23:04 +1000 Subject: [PATCH] fixes --- booking.install | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/booking.install b/booking.install index 5fcfd4b..c585f7c 100644 --- a/booking.install +++ b/booking.install @@ -641,6 +641,7 @@ function booking_update_7242() { 'booking_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_earlyaccess_code' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE), 'booking_earlyaccess_code_avail' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE), + 'booking_earlyaccess_code_nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'disp-width' => '10'), ), 'primary key' => array('cid'), ); @@ -673,7 +674,7 @@ function booking_update_7244() { 'booking_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_earlyaccess_code' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE), 'booking_earlyaccess_code_avail' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE), - 'booking_earlyaccess_code_nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), + 'booking_earlyaccess_code_nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'disp-width' => '10'), ), 'primary key' => array('cid'), ); @@ -687,23 +688,25 @@ function booking_update_7244() { /** * Rename booking_earlyaccess_code back to booking_earlyaccess_code_id in booking_person table */ +/* function booking_update_7245() { $spec = array('type' => 'int', 'length' => '11', 'not null' => FALSE); db_change_field('booking_person', 'booking_earlyaccess_code', 'booking_earlyaccess_code_id', $spec); //update the view to match the new table definition _booking_node_create_mysqlview(); } - +*/ /** * Add node id to booking_earlyaccess_codes table */ +/* function booking_update_7246() { - $spec = array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'); + $spec = array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'disp-width' => '10'); db_add_field('booking_earlyaccess_codes', 'booking_earlyaccess_code_nid', $spec); //update the view to match the new table definition _booking_node_create_mysqlview(); } - +*/ /** * Implementation of hook_install(). @@ -1096,7 +1099,7 @@ function booking_schema() { 'booking_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), 'booking_earlyaccess_code' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE), 'booking_earlyaccess_code_avail' => array('type' => 'varchar', 'length' => '1', 'not null' => FALSE), - 'booking_earlyaccess_code_nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), + 'booking_earlyaccess_code_nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'disp-width' => '10'), ), 'primary key' => array('cid'), );