You are here

function uc_shipping_update_6001 in Ubercart 6.2

File

shipping/uc_shipping/uc_shipping.install, line 379
Install hooks for uc_shipping.module.

Code

function uc_shipping_update_6001() {
  $ret = array();
  if (db_column_exists('uc_packages', 'values')) {
    if ($GLOBALS['db_type'] == 'mysql' || $GLOBALS['db_type'] == 'mysqli') {
      $field = '`values`';
    }
    else {
      $field = 'values';
    }
    db_change_field($ret, 'uc_packages', $field, 'value', array(
      'type' => 'numeric',
      'precision' => 10,
      'scale' => 2,
      'unsigned' => TRUE,
      'not null' => FALSE,
    ));
  }
  return $ret;
}