i. Change keys and foreign keys:
- in _comments
- a. comment_ID,
- b. comment_post_ID,
- c. comment_parent and
- d. user_id
- in _postmeta
- a. meta_id,
- b. post_id and
- c. meta_value for meta_key=_thumbnail_id (it is the ID in the _posts table of the image)
- in _terms term_id
- in _term_taxonomy
- a. term_id and
- b. term_taxonomy_id
- in _term_relationships
- a. object_id and
- b. term_taxonomy_id
- in _posts
- a. (post)ID, and
- b. post_parent and in order to do this last one, you
- connect the _posts table to the old_new_post_IDs table with a relationship between post_parent <=> old_post_ID and remember that post_parent only refers to (most but not all) pages and some attachements, so:
- posts retain their zero for a post parent (posts get assigned to categories thru table _term_relationships), and
- pages with a zero as post_parent are 1st line pages. For these pages you must create a new page (e.g. BLD pages = 2199 in brixfax.NET) get its number and put that number as the post_parent so they will all become children of that 1st line page, while
- the rest of the pages update to the new ID and finally
- some attachments (images) have post_parent other than zero. Don’t know why. Better leave zero for the zeroes and update for the non-zeroes
ii. Other updates:
- in _comments, field comment_content change all links to the old site to point to the new site
- in _posts, post_content change all links
- in _posts, post_content change all images
- in _posts, update guid
Problems encountered:
- Access produced errors on exporting
- field term_order in _terms table didn’t exist in target MySQL. PhpMyAdmin wouldn’t accept the data