You are here

function uc_order_update_6002 in Ubercart 6.2

Add the ability to log IPs with each order taken.

File

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

Code

function uc_order_update_6002() {
  $ret = array();
  $host_schema = array(
    'description' => 'Host IP address of the person paying for the order.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  );
  if (!db_column_exists('uc_orders', 'host')) {
    db_add_field($ret, 'uc_orders', 'host', $host_schema);
  }
  return $ret;
}