UUID Rebuild

Component ID

2364367

Component name

UUID Rebuild

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

459

Component created

Component changed

Component body

UUID Rebuild is a drush plugin with one command that allows for destructively rebuilding all UUIDs in a site.

WARNING THERE IS NO UNDO

There is no undo for this behavior as it forcibly rewrites all UUIDs in the database for a site. Times you may want to do this:

  • You imported content from another site and the two are not supposed to be kept in sync in any way, but the UUIDs were needed for relationship management on import
  • You cloned a database / produced a Drupal site in a non-standard way and want to make sure UUIDs are truly unique after build
  • You screwed something up and need to blow away the UUIDs in a site and don't want to uninstall then reinstall the module to get this to happen

Only get this project if you know why you are doing so. This was written to fix an issue where content imported via Feeds was supposed to be default content for demonstration purposes. Feeds Node Helper allows for book based content to be imported off of UUIDs so the content NEEDS to keep its UUIDs in order to figure out parent / child relationships on import. After import though, this information is no longer needed so we use this project in CIS (via ELMSLN's job file processing) to do the clean up.

Also see: UUID Rebuild UI for a GUI based approach to this (not recommended).