Browse Source

add update hook for change in migration source

d9_islandora
ezoller 4 years ago
parent
commit
6f51488dbb
  1. 12
      islandora.install

12
islandora.install

@ -55,3 +55,15 @@ function islandora_update_8003(&$sandbox) {
->schema() ->schema()
->dropTable('islandora_version_count'); ->dropTable('islandora_version_count');
} }
function islandora_update_8004() {
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('migrate_plus.migration.islandora__tags');
if ($config) {
if (!$config->get('source.ids')) {
$config->set('source.ids', $config->get('source.keys');
$config->clear('source.keys');
$config->save(TRUE);
}
}
}

Loading…
Cancel
Save