function uc_shipping_update_6005 in Ubercart 6.2
Change currency fields to numeric(16,5).
File
- shipping/
uc_shipping/ uc_shipping.install, line 435 - Install hooks for uc_shipping.module.
Code
function uc_shipping_update_6005() {
$ret = array();
db_change_field($ret, 'uc_shipments', 'cost', 'cost', array(
'type' => 'numeric',
'precision' => 16,
'scale' => 5,
'not null' => TRUE,
'default' => 0,
));
db_change_field($ret, 'uc_packages', 'value', 'value', array(
'type' => 'numeric',
'precision' => 16,
'scale' => 5,
'not null' => FALSE,
));
return $ret;
}