You are here

function uc_order_update_6 in Ubercart 5

File

uc_order/uc_order.install, line 364

Code

function uc_order_update_6() {
  $ret = array();
  $max_opid = db_result(db_query("SELECT MAX(order_product_id) AS max_opid FROM {uc_order_products}"));
  if ($max_opid) {
    $ret[] = update_sql("INSERT INTO {sequences} (name, id) VALUES ('{uc_order_products}_order_product_id', {$max_opid})");
  }
  return $ret;
}