function uc_weightquote_update_6002 in Ubercart 6.2
Change currency fields to numeric(16, 5).
File
- shipping/
uc_weightquote/ uc_weightquote.install, line 237 - Install modules for uc_weightquote.module.
Code
function uc_weightquote_update_6002() {
$ret = array();
db_change_field($ret, 'uc_weightquote_products', 'rate', 'rate', array(
'type' => 'numeric',
'precision' => 16,
'scale' => 5,
'not null' => FALSE,
));
db_change_field($ret, 'uc_weightquote_methods', 'base_rate', 'base_rate', array(
'type' => 'numeric',
'precision' => 16,
'scale' => 5,
'not null' => FALSE,
));
db_change_field($ret, 'uc_weightquote_methods', 'product_rate', 'product_rate', array(
'type' => 'numeric',
'precision' => 16,
'scale' => 5,
'not null' => FALSE,
));
return $ret;
}