You are here

payment_ubercart.install in Payment for Ubercart 7.2

Same filename and directory in other branches
  1. 7 payment_ubercart.install

Installation and uninstallation functions.

File

payment_ubercart.install
View source
<?php

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

/**
 * Implements hook_schema().
 */
function payment_ubercart_schema() {
  $schema['payment_ubercart'] = array(
    'fields' => array(
      'pid' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
      'uc_order_id' => array(
        'type' => 'int',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'pid',
    ),
    'unique keys' => array(
      'uc_order_id' => array(
        'pid',
        'uc_order_id',
      ),
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
payment_ubercart_schema Implements hook_schema().