You are here

function migrate_uninstall in Migrate 6.2

Same name and namespace in other branches
  1. 6 migrate.install \migrate_uninstall()
  2. 7.2 migrate.install \migrate_uninstall()

Implementation of hook_uninstall(). Drop map/message tables, in case implementing classes did not.

File

./migrate.install, line 164
Migrate module installation

Code

function migrate_uninstall() {

  // Note: If a derived Migration class defined its own map or message
  // table name not fitting this pattern, that class is solely responsible for
  // cleaning up

  /* TODO: No db_find_tables in D6
    foreach (db_find_tables('migrate_map_%') as $tablename) {
      db_drop_table($tablename);
    }
    foreach (db_find_tables('migrate_message_%') as $tablename) {
      db_drop_table($tablename);
    }
    */
  drupal_uninstall_schema('migrate');
}