$globals->debug = 0; // Do not store backtraces.
-echo "Formats non formated phones.\n";
+echo "Formats non formated phones. (1/4)\n";
$it = XDB::rawIterator("SELECT search_tel AS search, display_tel AS display, comment, link_id,
tel_type AS type, link_type, tel_id AS id, pid, pub
FROM profile_phones
$phone->save();
}
-echo "Deletes duplicated phones.\n";
+echo "Deletes duplicated phones. (2/4)\n";
$it = XDB::rawIterator("SELECT search_tel AS search, display_tel AS display, comment, link_id,
tel_type AS type, link_type, tel_id AS id, pid, pub
FROM profile_phones
}
}
-echo "Tries to geocode addresses (due a bug in the previous release, all addresses must run once again).\n";
+echo "Tries to geocode addresses (due a bug in the previous release, all addresses must run once again). (3/4)\n";
$it = XDB::rawIterator('SELECT *
FROM profile_addresses
ORDER BY pid, jobid, type, id');
$pid = 0;
$jobid = 0;
-while ($address = $it->next()) {
+while ($address = new Address($it->next())) {
$address->format(array(true, true));
$address->delete();
$address->save();
}
}
-echo "Deletes duplicated addresses.\n";
+echo "Deletes duplicated addresses. (4/4)\n";
$it = XDB::rawIterator("SELECT *
FROM profile_addresses
WHERE type = 'home'
$count = 1;
}
}
+echo "That's all folks!\n";
/* vim:set et sw=4 sts=4 ts=4: */
?>