You are here

payment_commerce.install in Payment for Drupal Commerce 7.2

Same filename and directory in other branches
  1. 8.2 payment_commerce.install
  2. 7 payment_commerce.install

Installation and uninstallation functions.

File

payment_commerce.install
View source
<?php

/**
 * @file
 * Installation and uninstallation functions.
 */

/**
 * Implements hook_schema().
 */
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;
}

Functions

Namesort descending Description
payment_commerce_schema Implements hook_schema().