function uc_file_update_3 in Ubercart 5
File
- uc_file/
uc_file.install, line 108
Code
function uc_file_update_3() {
$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;
}