function apachesolr_update_5002 in Apache Solr Search 5.2
Make sure no nodes have a timestamp that's in the future
File
- ./
apachesolr.install, line 228 - Install and related hooks for apachesolr_search.
Code
function apachesolr_update_5002() {
$ret = array();
// Make sure no nodes end up with a timestamp that's in the future.
$time = (int) time();
$ret[] = update_sql("UPDATE {apachesolr_search_node} SET changed = {$time} WHERE changed > {$time}");
return $ret;
}