RSS
 

Wednesday, 6 December, 2006

06 Dec

There were actually over 700 blog entries to add to this web site. I did it with three SQL statements:

INSERT INTO wp_posts (post_date, post_content, post_title, post_status, comment_status, ping_status, post_name) SELECT FROM_UNIXTIME(news_datestamp), news_body, news_title, ‘publish’, ‘closed’, ‘open’, REPLACE(news_title, ‘ ‘, ‘-’) FROM e107_news;

UPDATE wp_posts SET post_author = 2, guid = CONCAT(‘http://www.blogicalthoughts.com/?p=’, FORMAT(ID, 0)) WHERE ID > 41;

INSERT INTO wp_post2cat (post_id, category_id) SELECT ID, 1 FROM wp_posts WHERE ID > 41;

Each of these took less than a quarter of a second to execute, and I now have over 700 posts. Of course, there will be manual tweaking, since the two CMS programs are fundamentally different.


Silly sign of the day:


Free/Open Source Software

RIAA/MPAA/BSA/FCC

Stupid Patent Tricks, DRM and Other IP Nonsense

Other News

Security/Our Rights

Big Brother

 
Comments Off

Posted in Uncategorized

 

Comments are closed.