You are here

function payment_commerce_schema in Payment for Drupal Commerce 7.2

Same name and namespace in other branches
  1. 7 payment_commerce.install \payment_commerce_schema()

Implements hook_schema().

File

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

Code

function payment_commerce_schema() {
  $schema['payment_commerce'] = array(
    'fields' => array(
      'pid' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
      'transaction_id' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'pid',
    ),
    'unique keys' => array(
      'transaction_id' => array(
        'pid',
        'transaction_id',
      ),
    ),
  );
  return $schema;
}