There was a recent patch included in the 5.x tree for Links import... I ran it through Deadwood and got it to display the interface and all for 6.x, but it doesn't "do" anything when you run a test.
Wondered if there were plans by anybody that really understands how all this stuff works (which isn't me).
Thanks!
Bruce
Comments
Comment #1
rmiddle commentedThe import package require the links package to be installed and active to work. So unless links packages gets upgraded to Drupal 6 we can not offer an upgrade module until Links releases a drupal 6 package.
Thanks
Robert
Comment #2
bdillahu commentedI guess I can see that, although given that the database records are still there, even if Links isn't working, I guess I'll just do the SQL manually to update them.
Thanks!
Bruce
Comment #3
rmiddle commentedBruce,
Yea we simple do a node_load and then save it out back out. Sorry I can't be of more help.
Thanks
Robert
Comment #4
bdillahu commentedIn case it helps anybody, here's the SQL I used.
I do NOT guarantee it's right. I especially have some doubts about the Taxonomy handling, but it got the links displayed and the basic world working again.
It does not handle "last checked" time or anything.
Update the weblinks:
INSERT INTO weblinks
(vid, nid, url)
SELECT node.vid, node.nid, links.url FROM node
INNER JOIN links_node on node.nid = links_node.nid
INNER JOIN links on links.lid = links_node.lid
WHERE node.type LIKE 'weblink'
Clean up node types:
UPDATE node
SET type = 'weblinks'
WHERE type = 'weblink';
Create a temporary table with a mapping of the first taxonomy name in the list to the "group" name for the weblink. I'm not sure this all works right, but...
create table tid_temp as
SELECT node.nid, min(term_data.tid) FROM weblinks
INNER JOIN node on node.nid = weblinks.nid
INNER JOIN term_node on node.nid = term_node.nid
INNER JOIN term_data on term_data.tid = term_node.tid
WHERE node.type LIKE 'weblinks'
GROUP BY url
Rename field (dumb way, but it was quick):
ALTER TABLE `tid_temp` CHANGE `min(term_data.tid)` `tid` INT( 10 ) UNSIGNED NULL DEFAULT NULL
Set taxonomy id's;
update weblinks, tid_temp
set weblinks.tid = tid_temp.tid
where weblinks.nid = tid_temp.nid
Clean up temp table:
DROP TABLE `tid_temp`;
Comment #5
rmiddle commentedIf you set the tid to 0 all the links with end up in none. They you can add in groups and assign them to the right group.
Thanks
Robert