You are here

function paypal_payment_pps_schema in PayPal for Payment 7

Implements hook_schema().

File

paypal_payment_pps/paypal_payment_pps.install, line 11
Installation and uninstallation functions.

Code

function paypal_payment_pps_schema() {
  $schema['paypal_payment_pps_payment_method'] = array(
    'fields' => array(
      'capture' => array(
        'type' => 'int',
        'size' => 'tiny',
        'default' => 0,
        'not null' => TRUE,
      ),
      'email_address' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'pmid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'server' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'pmid',
    ),
    'unique keys' => array(
      'pmid' => array(
        'pmid',
      ),
    ),
  );
  return $schema;
}