You are here

function biblio_update_11 in Bibliography Module 5

File

./biblio.install, line 541

Code

function biblio_update_11() {
  $result = array();
  $nodes = db_query("SELECT * FROM {node} as n WHERE n.type='biblio' ");
  while ($node = db_fetch_object($nodes)) {
    $node->vid = db_next_id('{node_revisions}_vid');
    $result[] = update_sql("UPDATE {node} SET vid = {$node->vid} WHERE nid = {$node->nid};");
    $result[] = update_sql("UPDATE {node_revisions} SET vid = {$node->vid} WHERE nid = {$node->nid};");
    $result[] = update_sql("UPDATE {biblio} SET vid = {$node->vid} WHERE nid = {$node->nid};");
  }
  return $result;
}