function uc_bank_transfer_schema in Bank Transfer | Ubercart Payment 7
Same name and namespace in other branches
- 6 uc_bank_transfer.install \uc_bank_transfer_schema()
bank transfer install schema
File
- ./
uc_bank_transfer.install, line 11 - Installing uc_bank_transfer schema
Code
function uc_bank_transfer_schema() {
$schema = array();
$schema['uc_payment_bank_transfer'] = array(
'description' => 'Stores bank transfer payment information.',
'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;
}