After uninstall migration modules the tables created not removed and still exist and can not be reasonable to deploy without remove that tables.


The 3 modules Migrate, Migrate_drupal, Migrate_drupal_ui didn't implement Hook_uninstall() to remove these tables or other data related to migration and have no use after complete migration

The issue on drupal.org

1 Answer 1



List all tables prefixed with migrate_ in hook_install. Implement hook_uninstall to remove all tables prefixed with migrate_ except those listed when install the same prefix.


The migrate core module must list all tables prefixed with migrate_ during installl. The migrate module must remove all tables prefixed with migrate_ during uninstall.

drop_migration_tables_during_uninstall.patch implemented the hook_install && uninstall hooks in migrate.install to drop all tables prefixed with migrate except those where found during module installation (may be other contributed or custom modules defines tables prefixed with migrate) which is not a good decision

  • Can you provide a link to the core (or contrib) issue for this?
    – mradcliffe
    Apr 26, 2016 at 16:34
  • I added the link in the question body Apr 26, 2016 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.