function commerce_cop_update_7000 in Commerce Custom Offline Payments 7
Add 'checkout' and 'terminal' columns to the 'commerce_custom_offline_payment' table to extend the payments definitions/settings.
File
- ./
commerce_cop.install, line 91 - Install functions.
Code
function commerce_cop_update_7000() {
// 'checkout' table field.
$field = array(
'description' => '',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
);
db_add_field('commerce_custom_offline_payment', 'checkout', $field);
// 'terminal' table field.
$field = array(
'description' => '',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
);
db_add_field('commerce_custom_offline_payment', 'terminal', $field);
}