You are here

function uc_payment_update_6002 in Ubercart 6.2

Change currency fields to numeric(16,5).

File

payment/uc_payment/uc_payment.install, line 109
Install hooks for uc_payment.module.

Code

function uc_payment_update_6002() {
  $ret = array();
  db_change_field($ret, 'uc_payment_receipts', 'amount', 'amount', array(
    'type' => 'numeric',
    'precision' => 16,
    'scale' => 5,
    'not null' => TRUE,
    'default' => 0,
  ));
  return $ret;
}