function uc_order_update_6018 in Ubercart 6.2
Add currency code field.
File
- uc_order/
uc_order.install, line 1046 - Install, update and uninstall functions for the uc_order module.
Code
function uc_order_update_6018() {
$ret = array();
db_add_field($ret, 'uc_orders', 'currency', array(
'type' => 'char',
'length' => 3,
'not null' => TRUE,
'default' => '',
));
db_query("UPDATE {uc_orders} SET currency = '%s'", variable_get('uc_currency_code', 'USD'));
return $ret;
}