You are here

function uc_recurring_hosted_schema in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 modules/uc_recurring_hosted/uc_recurring_hosted.install \uc_recurring_hosted_schema()

Implements hook_schema().

File

modules/uc_recurring_hosted/uc_recurring_hosted.install, line 11
Installs the Recurring Fee Hosted module.

Code

function uc_recurring_hosted_schema() {
  $schema['uc_recurring_hosted'] = array(
    'description' => 'Stores recurring fee ids for hosted payment gateways.',
    'fields' => array(
      'rfid' => array(
        'description' => 'The id of the recurring fee.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'subscription_id' => array(
        'description' => 'The corresponding subscription id from the hosted gateway.',
        'type' => 'varchar',
        'length' => 50,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'rfid',
    ),
  );
  return $schema;
}