update mysql view for variety session registration ids

This commit is contained in:
Nathan Coad
2018-05-03 08:53:10 +10:00
parent 59cbcb9c52
commit 2521a6fd96
3 changed files with 20 additions and 1 deletions

View File

@@ -791,6 +791,13 @@ function booking_update_7254() {
db_rename_table('booking_variety_options', 'booking_variety_sessions');
}
/**
* Fix incorrect field name in booking_variety_regn table
*/
function booking_update_7255() {
$spec = array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10');
db_change_field('booking_variety_regn', 'booking_node_id', 'booking_person_nid', $spec);
}
/**
* Implementation of hook_install().
@@ -1087,7 +1094,7 @@ function booking_schema() {
'fields' => array(
'rid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'booking_variety_ids' => array('type' => 'varchar', 'length' => '1000', 'not null' => TRUE),
'booking_node_id' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
'booking_person_nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'disp-width' => '10'),
),
'primary key' => array('rid'),
);