You are here

function uc_shipping_update_6004 in Ubercart 6.2

Change to signed floats for package dimensions.

File

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

Code

function uc_shipping_update_6004() {
  $ret = array();
  $schema = array(
    'float_spec' => array(
      'type' => 'float',
      'not null' => TRUE,
      'default' => 0.0,
    ),
  );
  db_change_field($ret, 'uc_packages', 'length', 'length', $schema['float_spec'] + array(
    'description' => 'Physical length of the packaging.',
  ));
  db_change_field($ret, 'uc_packages', 'width', 'width', $schema['float_spec'] + array(
    'description' => 'Physical width of the packaging.',
  ));
  db_change_field($ret, 'uc_packages', 'height', 'height', $schema['float_spec'] + array(
    'description' => 'Physical height of the packaging.',
  ));
  return $ret;
}