You are here

function uc_recurring_hosted_schema in UC Recurring Payments and Subscriptions 6.2

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

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