function uc_payment_update_6000 in Ubercart 6.2
File
- payment/
uc_payment/ uc_payment.install, line 92 - Install hooks for uc_payment.module.
Code
function uc_payment_update_6000() {
$ret = array();
db_drop_primary_key($ret, 'uc_payment_receipts');
db_drop_index($ret, 'uc_payment_receipts', 'order_id');
db_change_field($ret, 'uc_payment_receipts', 'receipt_id', 'receipt_id', array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
), array(
'primary key' => array(
'receipt_id',
),
));
db_change_field($ret, 'uc_payment_receipts', 'order_id', 'order_id', array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
), array(
'indexes' => array(
'order_id' => array(
'order_id',
),
),
));
db_change_field($ret, 'uc_payment_receipts', 'uid', 'uid', array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
));
return $ret;
}