Skip to content

Commit

Permalink
Merge pull request #9 from SU-SWS/release-8.1.2
Browse files Browse the repository at this point in the history
"8.x-1.x >  8.1.2
  • Loading branch information
imonroe authored Aug 7, 2020
2 parents 704b5ee + ae32487 commit 7d86e8d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Stanford Migrate

8.x-1.2
--------------------------------------------------------------------------------
_Release Date: 2020-08-07_

- DEVOPS-000: Dont run migrations during site install. (#8) (683364a)

8.x-1.1
--------------------------------------------------------------------------------
_Release Date: 2020-07-13_
Expand Down
2 changes: 1 addition & 1 deletion stanford_migrate.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Adds more functionality to migrate and migrate plus modules'
type: module
core_version_requirement: ^8.8 || ^9
package: 'Stanford'
version: 8.x-1.1
version: 8.x-1.2
dependencies:
- drupal:migrate
- migrate_plus:migrate_plus
Expand Down
6 changes: 6 additions & 0 deletions stanford_migrate.module
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use Drupal\migrate_tools\MigrateExecutable;
use Drupal\migrate\MigrateMessage;
use Drupal\Core\Entity\EntityInterface;
use Drupal\ultimate_cron\CronJobInterface;
use Drupal\Core\Installer\InstallerKernel;

/**
* Implements hook_help().
Expand Down Expand Up @@ -116,6 +117,11 @@ function stanford_migrate_entity_delete(EntityInterface $entity) {
* Ultimate cron entity.
*/
function stanford_migrate_ultimate_cron_task(CronJobInterface $cron_entity) {

// Don't run the migrations when drupal is being installed.
if (InstallerKernel::installationAttempted()) {
return;
}
// Invalidate migration plugins to gather any changes to config entities
// before running import. This allows for any changes to the source urls.
Cache::invalidateTags(['migration_plugins']);
Expand Down

0 comments on commit 7d86e8d

Please sign in to comment.