From b0fca9b101a4a5c796a16721c532e347ac811067 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 23 Jul 2016 11:16:27 +1000 Subject: [PATCH] db update to handle stripe response size --- booking.install | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/booking.install b/booking.install index 7b8305e..5312d29 100644 --- a/booking.install +++ b/booking.install @@ -615,6 +615,16 @@ function booking_update_7240() { _booking_node_create_mysqlview(); } +/** +* Change stripe token field to store stripe charge response as JSON +*/ +function booking_update_7241() { + $spec = array('type' => 'varchar', 'length' => '50000', 'not null' => FALSE); + db_change_field('booking_payment', 'booking_stripe_token', 'booking_stripe_response', $spec); + //update the view to match the new table definition + _booking_node_create_mysqlview(); +} + /** * Implementation of hook_install(). */