Issue #2569605 by phenaproxima, neclimdul, catch: Remove migrations from update path test fixtures

8.0.x
webchick 2015-09-30 11:45:52 -07:00
parent 9fc8bba35e
commit 5355f8cc02
2 changed files with 4 additions and 31 deletions

View File

@ -34,35 +34,8 @@ function block_content_update_8001() {
* migrations.
*/
function block_content_update_8002() {
if (\Drupal::moduleHandler()->moduleExists('migrate')) {
$config = \Drupal::configFactory();
$templates = \Drupal::service('migrate.template_storage');
$migration = $config->getEditable('migrate.migration.d6_block_content_type');
if ($migration) {
$template = $templates->getTemplateByName('block_content_type');
$migration
->set('id', $template['id'])
->set('label', $template['label'])
->set('migration_tags', $template['migration_tags'])
->set('source', array_merge($migration->get('source'), $template['source']))
->clear('source.constants')
->set('process', $template['process'])
->save(TRUE);
}
$migration = $config->getEditable('migrate.migration.d6_block_content_body_field');
if ($migration) {
$template = $templates->getTemplateByName('block_content_body_field');
$migration
->set('id', $template['id'])
->set('label', $template['label'])
->set('migration_tags', $template['migration_tags'])
->set('source', array_merge($migration->get('source'), $template['source']))
->clear('source.constants')
->set('process', $template['process'])
->set('migration_dependencies', $template['migration_dependencies'])
->save(TRUE);
}
}
// Removed in issue #2569605. The Migrate and Migrate Drupal modules are
// marked experimental and do not need to support the update path until they
// are stable.
// @see https://www.drupal.org/node/2569469
}