You are here

basic_cart_payment.install in Basic cart 7.3

Installation and uninstallation functions.

File

basic_cart_payment/basic_cart_payment.install
View source
<?php

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

/**
 * Implements hook_schema().
 */
function basic_cart_payment_schema() {
  $schema['basic_cart_order_payment'] = array(
    'description' => 'TODO: please describe this table!',
    'fields' => array(
      'oid' => array(
        'description' => 'The order ID.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'pid' => array(
        'description' => 'The payment ID.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'oid',
      'pid',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
basic_cart_payment_schema Implements hook_schema().