You are here

function uc_product_update_6006 in Ubercart 6.2

Changes to signed floats.

File

uc_product/uc_product.install, line 338
Install, update and uninstall functions for the uc_product module.

Code

function uc_product_update_6006() {
  $ret = array();
  $schema = array(
    'float_spec' => array(
      'type' => 'float',
      'not null' => TRUE,
      'default' => 0.0,
    ),
  );
  db_change_field($ret, 'uc_products', 'weight', 'weight', $schema['float_spec'] + array(
    'description' => "The product's physical weight",
  ));
  db_change_field($ret, 'uc_products', 'length', 'length', $schema['float_spec'] + array(
    'description' => 'Physical length of the product or its packaging.',
  ));
  db_change_field($ret, 'uc_products', 'width', 'width', $schema['float_spec'] + array(
    'description' => 'Physical width of the product or its packaging.',
  ));
  db_change_field($ret, 'uc_products', 'height', 'height', $schema['float_spec'] + array(
    'description' => 'Physical height of the product or its packaging.',
  ));
  return $ret;
}