You are here

function uc_roles_update_4 in Ubercart 5

File

uc_roles/uc_roles.install, line 120

Code

function uc_roles_update_4() {
  $ret = array();

  // Fixes the db_next_id() + 1 error.
  $pfid = db_result(db_query("SELECT MAX(pfid) FROM {uc_product_features}"));
  $ret[] = update_sql("UPDATE {sequences} SET id = " . intval($pfid) . " WHERE name = '{uc_product_features}_pfid'");
  return $ret;
}