Migrations use this PR as a source. If you need to make changes to the source data, or you want to use your local, check out that branch and ./start_migrate.sh. Then change the URLs to your local URLs using the IP version, localhost won't work because Drupal is running in a container.
IMPORTANT: Post-launch, the digital_gov_migration module is disabled by default to prevent running the migrations and overwriting content on the site. If you need to run the migrations locally, you must enable the module.
drush.sh pm:en digital_gov_migrationDon't forget to disable it when you're done.
drush.sh pm:uninstall digital_gov_migration
If this is not done, then duplicate content and sample content will stick around.
./drush.sh rcbm
./drush.sh migrate:import --all
./drush.sh migrate:rollback --all
Drupal won't get the order right in all environments.
./drush.sh migrate:import --tag "digitalgov"
./drush.sh migrate:import --tag "digitalgov-guidenav"
./drush.sh migrate:rollback --tag "digitalgov"
./drush.sh migrate:rollback --tag "digitalgov-guidenav"
./drush.sh migrate:import <migration-id>
However, if you want to clear cache so your changes to the migration definition take place, and roll back, then use
./migrate.sh <migration-id>.
This is handy when developing. This script also allows passing arguments to the migration command, so you can do things like
./migrate.sh json_images --limit=5
So you don't have to migrate everything.
Fix short codes and add link it markup:
./drush.sh digitalgov:update-nodes
./drush.sh digitalgov:update-paragraphs
Do all of the above at once.
./migrate-all.sh