This commit is contained in:
2017-06-29 16:23:04 +10:00
parent 7df9904aaf
commit b85f17b362

View File

@@ -641,6 +641,7 @@ function booking_update_7242() {
'booking_eventid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'), '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' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE),
'booking_earlyaccess_code_avail' => array('type' => 'varchar', 'length' => '1', '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'), '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_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' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE),
'booking_earlyaccess_code_avail' => array('type' => 'varchar', 'length' => '1', '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'), '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 * Rename booking_earlyaccess_code back to booking_earlyaccess_code_id in booking_person table
*/ */
/*
function booking_update_7245() { function booking_update_7245() {
$spec = array('type' => 'int', 'length' => '11', 'not null' => FALSE); $spec = array('type' => 'int', 'length' => '11', 'not null' => FALSE);
db_change_field('booking_person', 'booking_earlyaccess_code', 'booking_earlyaccess_code_id', $spec); db_change_field('booking_person', 'booking_earlyaccess_code', 'booking_earlyaccess_code_id', $spec);
//update the view to match the new table definition //update the view to match the new table definition
_booking_node_create_mysqlview(); _booking_node_create_mysqlview();
} }
*/
/** /**
* Add node id to booking_earlyaccess_codes table * Add node id to booking_earlyaccess_codes table
*/ */
/*
function booking_update_7246() { 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); db_add_field('booking_earlyaccess_codes', 'booking_earlyaccess_code_nid', $spec);
//update the view to match the new table definition //update the view to match the new table definition
_booking_node_create_mysqlview(); _booking_node_create_mysqlview();
} }
*/
/** /**
* Implementation of hook_install(). * 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_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' => array('type' => 'varchar', 'length' => '500', 'not null' => FALSE),
'booking_earlyaccess_code_avail' => array('type' => 'varchar', 'length' => '1', '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'), 'primary key' => array('cid'),
); );