rename booking_event_id in booking_person table

This commit is contained in:
2016-05-03 22:49:45 +10:00
parent 80cd8d157a
commit 3ce77ebea6
14 changed files with 51 additions and 43 deletions

View File

@@ -1,5 +1,5 @@
<?php
// $Id$
function booking_update_7100() {
$spec = array('type' => 'numeric', 'not null' => FALSE, 'default' => 0, 'precision' => '7', 'scale' => '2');
db_add_field( 'booking_price', 'booking_late_price', $spec);
@@ -23,7 +23,7 @@ function booking_update_7103() {
}
function booking_update_7104() {
$spec = array('type' => 'int', 'not null' => FALSE, 'disp-width' => '11');
$spec = array('type' => 'int', 'not null' => FALSE, 'disp-width' => '11');
db_change_field('booking_person', 'booking_deposit_timestamp', 'booking_deposit_timestamp', $spec);
}
@@ -40,14 +40,14 @@ function booking_update_7106() {
$spec = array('type' => 'varchar', 'length' => '50', 'not null' => FALSE);
db_add_field( 'booking_person', 'booking_passport_num', $spec);
//add mission area experience details
$spec = array('type' => 'varchar', 'length' => '1', 'not null' => FALSE);
db_add_field( 'booking_person', 'booking_has_mission_experience', $spec);
$spec = array('type' => 'varchar', 'length' => '1', 'not null' => FALSE);
db_add_field( 'booking_person', 'booking_has_mission_experience', $spec);
$spec = array('type' => 'varchar', 'length' => '200', 'not null' => FALSE);
db_add_field( 'booking_person', 'booking_mission_experience_details', $spec);
}
function booking_update_7107() {
$spec = array('type' => 'varchar', 'length' => '500', 'not null' => FALSE);
$spec = array('type' => 'varchar', 'length' => '500', 'not null' => FALSE);
db_change_field('booking_person', 'booking_mission_experience_details', 'booking_mission_experience_details', $spec);
}
@@ -523,6 +523,14 @@ function booking_update_7231() {
db_add_field('booking_person', 'booking_comment_field', $spec);
}
/**
* Rename booking_event_id in booking_person table to booking_eventid
*/
function booking_update_7232() {
$spec = array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE);
db_change_field('booking_person', 'booking_event_id', 'booking_eventid', $spec);
}
/**
* Implementation of hook_install().
*/
@@ -570,7 +578,7 @@ function booking_schema() {
'fields' => array(
//identifiers
'nid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'booking_event_id' => array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE),
'booking_eventid' => array('type' => 'int', 'length' => '11', 'default' => 0, 'not null' => FALSE),
'booking_tempid' => array('type' => 'varchar', 'length' => '40', 'not null' => FALSE),
'booking_timestamp' => array('type' => 'int', 'not null' => TRUE, 'disp-width' => '11'),
'booking_firstname' => array('type' => 'varchar', 'length' => '50', 'not null' => TRUE),