You are here

public static function MigrateGroup::deregister in Migrate 7.2

Deregister a migration group - remove it from the database, and also remove migrations attached to it.

Parameters

string $name: (Machine) name of the group to deregister.

5 calls to MigrateGroup::deregister()
drush_migrate_deregister in ./migrate.drush.inc
Deregister a given migration, migration group, or all orphaned migrations. Note that the migration might no longer "exist" (the class implementation might be gone), so we can't count on being able to instantiate it, or…
migrate_example_baseball_disable in migrate_example_baseball/migrate_example_baseball.install
migrate_example_beer_disable in migrate_example/beer.install.inc
migrate_example_wine_disable in migrate_example/wine.install.inc
migrate_ui_migrate_submit in migrate_ui/migrate_ui.pages.inc
Submit callback for the dashboard form.

File

includes/group.inc, line 179
Definition for a migration group.

Class

MigrateGroup
@file Definition for a migration group.

Code

public static function deregister($name) {
  $result = db_select('migrate_status', 'ms')
    ->fields('ms', array(
    'machine_name',
  ))
    ->condition('group_name', $name)
    ->execute();
  foreach ($result as $row) {
    Migration::deregisterMigration($row->machine_name);
  }
  db_delete('migrate_group')
    ->condition('name', $name)
    ->execute();
}