Browse Source

Merge branch 'd9_islandora' of https://github.com/asulibraries/islandora into d9_islandora

d9_islandora
ezoller 4 years ago
parent
commit
d4e2c72a39
  1. 5
      .travis.yml
  2. 15
      islandora.install

5
.travis.yml

@ -1,8 +1,7 @@
sudo: true sudo: true
language: php language: php
php: php:
- 7.2 - 7.4
- 7.3
env: env:
- TESTSUITE=kernel - TESTSUITE=kernel
@ -11,8 +10,6 @@ env:
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures:
- php: 7.3
services: services:
- mysql - mysql

15
islandora.install

@ -55,3 +55,18 @@ function islandora_update_8003(&$sandbox) {
->schema() ->schema()
->dropTable('islandora_version_count'); ->dropTable('islandora_version_count');
} }
/**
* Renames migration source keys -> ids.
*/
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