Please see #1418350: "Class no longer exists" after migration module is disabled

When you rename/remove a migration class you will start getting error messages that the class is no longer available. In addition, there are extra migrate_map_ and migrate_message_ tables which remain, and an extra row in migrate_status as well.

The proposed solutions are

  • Add a deregister function for each of the old classes, then disable and re-enable your migration module
  • Use Drush migrate-deregister to remove them
  • Delete the tables manually from the database

It seems like there should be a UI feature that resolves this issue, which would be much simpler and less prone to mistakes.

Comments

mikeryan’s picture

Title: "Class not available" error message when you rename/remove a migration class » Add UI for deregistering migrations
mikeryan’s picture

Priority: Minor » Normal

Bumping up - this will help support #1826112: Wizard framework, wordpress_migrate currently has this functionality (presented as "Remove migration bookkeeping"), that should be generally available for dynamic migrations.

mikeryan’s picture

Issue tags: +Migrate 2.6

Tagging for 2.6.

mikeryan’s picture

Status: Active » Fixed

Committed to the wizard_api branch. This includes both a Deregister option on the dashboard, and a Deregister orphans button that appears on the Registration tab if there are any orphaned migrations (i.e., migrations whose class is no longer defined).

Automatically closed -- issue fixed for 2 weeks with no activity.