1

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

Problem:

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

1

Motivation:

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.

Solution:

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

2
  • 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 that you have read and understand our privacy policy and code of conduct.

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