You are here

function uc_order_update_6003 in Ubercart 6.2

Make the numeric fields signed for Postgres compatibility.

File

uc_order/uc_order.install, line 732
Install, update and uninstall functions for the uc_order module.

Code

function uc_order_update_6003() {
  $ret = array();
  db_change_field($ret, 'uc_order_products', 'cost', 'cost', array(
    'type' => 'numeric',
    'precision' => 10,
    'scale' => 2,
    'not null' => TRUE,
    'default' => 0,
  ));
  db_change_field($ret, 'uc_order_products', 'price', 'price', array(
    'type' => 'numeric',
    'precision' => 10,
    'scale' => 2,
    'not null' => TRUE,
    'default' => 0,
  ));
  return $ret;
}