revert changes
This commit is contained in:
@@ -631,7 +631,7 @@ function booking_update_7241() {
|
||||
*/
|
||||
function booking_update_7242() {
|
||||
//add field to booking_person table
|
||||
$spec = array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE);
|
||||
$spec = array('type' => 'int', 'length' => '11', 'not null' => FALSE);
|
||||
db_add_field('booking_person', 'booking_earlyaccess_code_id', $spec);
|
||||
|
||||
//create new table to store the valid codes
|
||||
@@ -661,12 +661,9 @@ function booking_update_7243() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename booking_earlyaccess_code_id in booking_person table to booking_earlyaccess_code
|
||||
* Rename booking_regn_earlyaccess_codes table to booking_earlyaccess_codes
|
||||
*/
|
||||
function booking_update_7244() {
|
||||
$spec = array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE);
|
||||
db_change_field('booking_person', 'booking_earlyaccess_code_id', 'booking_earlyaccess_code', $spec);
|
||||
|
||||
db_drop_table('booking_regn_earlyaccess_codes');
|
||||
|
||||
//create new table to store the valid codes
|
||||
@@ -686,6 +683,18 @@ function booking_update_7244() {
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Implementation of hook_install().
|
||||
*/
|
||||
@@ -756,7 +765,7 @@ function booking_schema() {
|
||||
'nid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
|
||||
'booking_eventid' => array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE),
|
||||
'booking_tempid' => array('type' => 'varchar', 'length' => '40', 'not null' => FALSE),
|
||||
'booking_earlyaccess_code' => array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE),
|
||||
'booking_earlyaccess_code_id' => array('type' => 'int', 'length' => '11', 'not null' => FALSE),
|
||||
'booking_timestamp' => array('type' => 'int', 'not null' => TRUE, 'disp-width' => '11'),
|
||||
'booking_firstname' => array('type' => 'varchar', 'length' => '50', 'not null' => TRUE),
|
||||
'booking_lastname' => array('type' => 'varchar', 'length' => '50', 'not null' => TRUE),
|
||||
|
Reference in New Issue
Block a user