You are here

public static function MigrationBase::deregisterMigration in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/base.inc \MigrationBase::deregisterMigration()

Deregister a migration - remove all traces of it from the database (without touching any content which was created by this migration).

Parameters

string $machine_name:

2 calls to MigrationBase::deregisterMigration()
migrate_example_wine_disable in migrate_example/wine.install.inc
Migration::deregisterMigration in includes/migration.inc
Deregister a migration - remove all traces of it from the database (without touching any content which was created by this migration).
1 method overrides MigrationBase::deregisterMigration()
Migration::deregisterMigration in includes/migration.inc
Deregister a migration - remove all traces of it from the database (without touching any content which was created by this migration).

File

includes/base.inc, line 395
Defines the base class for migration processes.

Class

MigrationBase
The base class for all objects representing distinct steps in a migration process. Most commonly these will be Migration objects which actually import data from a source into a Drupal destination, but by deriving classes directly from MigrationBase…

Code

public static function deregisterMigration($machine_name) {
  $rows_deleted = db_delete('migrate_status')
    ->condition('machine_name', $machine_name)
    ->execute();
}