Skip to content
Snippets Groups Projects
Commit 5355f8cc authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 9fc8bba3
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment