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