You are here

function uc_bank_transfer_schema in Bank Transfer | Ubercart Payment 6

Same name and namespace in other branches
  1. 7 uc_bank_transfer.install \uc_bank_transfer_schema()

@file Installing uc_bank_transfer schema

File

./uc_bank_transfer.install, line 8
Installing uc_bank_transfer schema

Code

function uc_bank_transfer_schema() {
  $schema = array();
  $schema['uc_payment_bank_transfer'] = array(
    'fields' => array(
      'bank_transfer_id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'order_id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'clear_date' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'order_id' => array(
        'order_id',
      ),
    ),
    'primary key' => array(
      'bank_transfer_id',
    ),
  );
  return $schema;
}