payment_commerce.install in Payment for Drupal Commerce 7
Same filename and directory in other branches
Installation and uninstallation functions.
File
payment_commerce.installView 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
Name | Description |
---|---|
payment_commerce_schema | Implements hook_schema(). |