You are here

function uc_taxes_update_6001 in Ubercart 6.2

Change to signed floats.

File

uc_taxes/uc_taxes.install, line 104
Install, update and uninstall functions for the uc_taxes module.

Code

function uc_taxes_update_6001() {
  $ret = array();
  $schema = array(
    'rate' => array(
      'description' => 'The rate of taxation.',
      'type' => 'float',
      'not null' => TRUE,
      'default' => 0.0,
    ),
  );
  db_change_field($ret, 'uc_taxes', 'rate', 'rate', $schema['rate']);
  return $ret;
}