You are here

function uc_order_update_6011 in Ubercart 6.2

Add a total product quantity column to {uc_orders}.

File

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

Code

function uc_order_update_6011() {
  $ret = array();
  $spec = array(
    'description' => 'The total product quantity of the order.',
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  );
  db_add_field($ret, 'uc_orders', 'product_count', $spec);
  return $ret;
}