You are here

README.txt in Migrate Webform 7

README for Migrate Webform

File

README.txt
View source
  1. /**
  2. * @file
  3. * README for Migrate Webform
  4. */
  5. This module is intended to bring the contents of a Drupal 6 Webform
  6. implementation into a new Drupal 7 site, done though the UI using migrate.
  7. It relies on the migrate_d2d package so that it is possible to bring over nodes
  8. created in the webform type without doing any other configration. It could in
  9. theory support reliance on a different node migration class in the future.
  10. Should you need to add custom fields to your nodes, be sure to use migrate 2.6
  11. and enable the ui-related modules so you can see the "edit" tab on each
  12. migration class in the group.
  13. INSTALLATION
  14. - After enabling, go to /admin/content/migrate
  15. - Note the group "Webform Migrations" now appears but is empty.
  16. - Click "Configure Webform Migration"
  17. - Put in the key of the secondary database you added to settings.php db array
  18. - Save
  19. - Back on the migrate page click "Configuration"
  20. - Click "Register statically-defined classes"
  21. - Now all your migrations will appear under the "Webform Migrations" group
  22. After you have done this it is important to know some things about how to get
  23. out of trouble if things go wrong:
  24. - If the tables are not found, go to the main Migrate page, click
  25. the "Configuration" button and "Register statically-defined classes" again.
  26. - Should you lose connection to the DB and it keeps importing/rolling back
  27. you can use the "reset" function in the bulk actions on the migrate page and
  28. then restart the process from where you were.
  29. - If you changed code while running and/or did some other major breakage
  30. you can (1) use the remove the migration settings bulk action, (2) re-register
  31. the classes as outlined above. If you had items that were not rolled back
  32. you will have to go delete them the "Drupal way" as removing the migration
  33. settings deletes the map and abandons the content.
  34. - If it is not possible to get to the /admin/content/migrate page for any
  35. reason it is safe to truncate the migrate_status table as long as you
  36. re-register classes after doing so. It will leave partially-migrated settings
  37. in-place (if you did not "remove migration settings" as outlined above, the
  38. content map will remain in-place).
  39. NOTES
  40. - Files will need a "FilesMigration" or other class. Recommended to use
  41. migrate_d2d. Currently the module does not hook into this yet for the
  42. components.
  43. - Roles are matched by the name of the role in the old system, not by relying
  44. on a RuleMigration class. This allows migrate_api_alter to change things. It
  45. would be good if someone wrote a patch to do a second way of doing Roles that
  46. utilizes a migration class.
  47. CREDITS
  48. Special thanks to the commerce_migrate_ubercart devs for some ideas I borrowed.
  49. Thanks to the two sponsors who helped make this module possible. If you are
  50. interesed in funding further work on this project please contact me.