Upgrade script – dont delete

nid);
$parent = db_result(db_query(“select nid from node where (type = ‘bargaining_unit’ OR type = ‘bargaining_unit_location’) AND title =’%s'”, $child->field_bargaining_unit[0][‘value’]));
//dpm($x. ‘|’.$parent . $child->field_bargaining_unit[0][‘value’] . $child->title);
$child->field_bu_loc_ref[0][‘nid’] = $parent;
if($parent) {
// node_save($child);
//dpm($parent);
}
}
?>