Repository navigation
Rehearsing on Local
Written against v0.3.0.
At the end of this walkthrough every value ACF Custom Database Tables serves on a local copy of the multisite is in postmeta, the plugin is deactivated, and a compare shows the site reading exactly what it read before. Rehearse at least twice before Migrating production.
Every step happens in Tools → ACFCDT Migration on a site that has custom tables, except where it says Network Admin. The Admin screens page describes each section. The same steps run from the command line with the WP-CLI commands.
-
Back up the database. On Local that is
wp db export, or Local's own backup feature. - 1. Inventory & archive: review the inventory, then download all rows (JSONL) and the orphaned columns (CSV) for each table. The inventory says, per table, whether the plugin is reading it; a red warning at the top of the page means it is not (see Troubleshooting).
-
2. Snapshots: take
beforein mode effective. -
3. Backfill: run with Dry run checked, then open By field and Changes on the run and review each action (Backfill results lists them):
-
fill: postmeta was empty (expected for most rows) -
overwrite: postmeta held an old value from before the bypass -
clear: the table is empty but postmeta held an outdated value
-
- 3. Backfill: uncheck Dry run and run it for real. Mismatches must be 0.
- Run another dry run. It must show 0 / 0. The only exception is fields flagged invalid: a corrupted ID in the custom table (for example
"10522]"). Those are never written. Fix the post by hand with the plugin active (re-select the value and save), then run the backfill again. -
2. Snapshots: take
after-metain mode meta. -
4. Compare:
beforeagainstafter-metamust show Identical.
- Network Admin → Plugins: network-deactivate ACF Custom Database Tables.
- On each site, take snapshot
after-off, then comparebeforeagainstafter-off. It must show Identical. - Click through provider profiles, location pages, and the Providers and Locations blocks filtered by location and area of expertise. Rebuild the FacetWP index.
- Practice going back, as Rolling back describes: reactivate the plugin and roll back the real run, or restore the database backup.
Restore the backup and repeat. The rehearsal is clean when steps 5 to 8 and step 10 all come out clean, and then production is ready.
Note: Long jobs run as a chain of short requests and can be resumed. If a step stops partway, see Troubleshooting.
Home | Rehearsing on Local | Guides | Troubleshooting | Reference | Project | README | Repository
Written against v0.3.0. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
Troubleshooting
Reference
Project