Closed (fixed)
Project:
Migrate
Version:
6.x-2.x-dev
Component:
Drush
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2011 at 01:26 UTC
Updated:
29 Apr 2012 at 06:19 UTC
Use-Case: Successfully migrated a content-type w/ 11 CCK fields. Few days later, realization a 12th 'node reference' field was left out.
What is the best course of action to update previously migrated content?
--update to the end?Having trouble understanding where appending --update to the end of a migration class is appropriate ? Is it only used when using SystemOfRecord? Thanks for the wonderful module.
Comments
Comment #1
mikeryan#2. --update doesn't have anything to do with systemOfRecord - it's for exactly your scenario, as well as cases where the source data is changing and you want to make sure you pull all the updates.
Comment #2
chadchandler commentedThanks Mike
Through 'Trial-and-Error' I've started to use
--updatein place ofSystemOfRecord<i>(Destination)</i>Can you provide an example where --update would not work and using SystemofRecord would be called for?
Comment #3
mikeryanIf you have data on the Drupal side you don't want overwritten by the migration, you would set your systemOfRecord to DESTINATION, and leave the fields you want to preserve unmapped. See http://drupal.org/node/1117454.
Comment #5
killtheliterate commentedSomehow I can't get --update to work.
drush migrate-import UnitedProductDisplay --updateUnknown option: --update. See `drush help migrate-import` for [error]
available options. To suppress this error, add the option
--strict=0.
Comment #6
killtheliterate commentedI was a version off on migrate. Works now.