function apachesolr_update_6002 in Apache Solr Search 6
Same name and namespace in other branches
- 6.2 apachesolr.install \apachesolr_update_6002()
Make sure no nodes have a timestamp that's in the future
File
- ./
apachesolr.install, line 218 - Install and related hooks for apachesolr_search.
Code
function apachesolr_update_6002() {
$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;
}