function uc_stripe_update_7301 in Ubercart Stripe 7.3
Creates table to track orders that require extra authentication verification.
File
- ./
uc_stripe.install, line 244 - Installation file for the uc_stripe module.
Code
function uc_stripe_update_7301() {
$table = array(
'description' => 'Ubercart Stripe - Track orders pending authentication',
'fields' => array(
'id' => array(
'description' => 'id of entry',
'type' => 'serial',
'not null' => TRUE,
),
'order_id' => array(
'description' => 'Order Id of pending order',
'type' => 'int',
'not null' => TRUE,
),
'rfee_id' => array(
'description' => 'Recurring Fee Id of pending order',
'type' => 'int',
'not null' => TRUE,
),
'completed' => array(
'description' => 'Competion status of this pending order',
'type' => 'int',
'not null' => TRUE,
),
'hash' => array(
'description' => 'The unqiue has of order and payment id',
'type' => 'varchar',
'length' => '100',
'not null' => TRUE,
),
),
'unique keys' => array(
'hash' => array(
'hash',
),
),
'primary key' => array(
'id',
),
);
db_create_table('uc_stripe_pending_auth', $table);
}