commence adding stripe integration
This commit is contained in:
@@ -605,6 +605,16 @@ function booking_update_7239() {
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add stripe token field to booking_payments table
|
||||
*/
|
||||
function booking_update_7239() {
|
||||
$spec = array('type' => 'varchar', 'length' => '200', 'not null' => FALSE);
|
||||
db_add_field('booking_payment', 'booking_stripe_token', $spec);
|
||||
//update the view to match the new table definition
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_install().
|
||||
*/
|
||||
@@ -840,6 +850,7 @@ function booking_schema() {
|
||||
'booking_payer_status' => array('type' => 'varchar', 'length' => '50', 'not null' => FALSE),
|
||||
'booking_item_name' => array('type' => 'varchar', 'length' => '200', 'not null' => FALSE),
|
||||
'booking_ipn_track_id' => array('type' => 'varchar', 'length' => '200', 'not null' => FALSE)),
|
||||
'booking_stripe_token' => array('type' => 'varchar', 'length' => '200', 'not null' => FALSE)),
|
||||
'primary key' => array('payid'),
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user