- 2017-08-10
- Remove data from
old_
that is already inlive
- Add "Legacy Import" user in
wp_users
- Assign "Legacy Import" user to
post_author
inwp_posts
- Dump
old_
data fromimport
- Fixup
term_id
to matchterm_taxonomy_id
for (1226
to1250
) - FTP uploads from
import
-post_type='wabe_person'
tolive
- Create
preview
branch on Pantheon- Copy code from
player
- Copy DB from
live
- Copy Files from
live
- Copy code from
- Dump of the
old_
data tables fromimport
- Uploads from
import
-post_type='post'
uploads (already onlive
) - Uploads from
import
-post_type='wabe_person'
- Use terminus to copy DB from
live
topreview
- Use terminus to copy Files from
live
topreview
- Run on
preview
orlive
1
ispreview
only
-
Import
old_
data tables by running -
IMPORT
old_
tables intolive
tables:a.
IMPORT
old_
post
records intowp_
DB (ID>=275000
)b.
IMPORT
old_
postmeta
records intowp_
DB (meta_id>=2,000,000
)c.
IMPORT
old_
terms
records intowp_
DB (term_id>=2000
)d.
IMPORT
old_
term_taxonomy
records intowp_
DB (term_taxonomy_id>=2000
)e.
IMPORT
old_
term_relationships
records intowp_
DB -
Run API to import XML for newer posts (>= Aug 3rd)
curl
the URL (path)/npr-missing-story-xml
curl
the URL (path)/npr-import-authors
curl
the URL (path)/npr-image-attributions
curl
the URL (path)/npr-content-source
Used to find stories with orphaned categories or tags:
SELECT
tr.*, t.name,p.post_title
FROM
wp_term_relationships tr
LEFT OUTER JOIN
wp_term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
LEFT OUTER JOIN
wp_terms t ON t.term_id = tt.term_id
LEFT OUTER JOIN
wp_posts p ON p.ID = tr.object_id
WHERE
tt.term_taxonomy_id IS NULL