Skip to content

Commit

Permalink
Merge pull request #68 from discoverygarden/fix/binary-migration
Browse files Browse the repository at this point in the history
IMT-104: Add in the model to have media created.
  • Loading branch information
jordandukart authored Apr 14, 2022
2 parents a1ad362 + 960a356 commit e0c70f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ process:
'info:fedora/islandora:sp_large_image_cmodel': 'image'
'info:fedora/ir:citationCModel': 'file'
'info:fedora/islandora:sp_pdf': 'file'
'info:fedora/islandora:binaryObjectCModel': 'file'
'info:fedora/islandora:sp_videoCModel': 'video'
'info:fedora/islandora:sp-audioCModel': 'audio'
'info:fedora/islandora:pageCModel': 'image'
Expand Down
8 changes: 8 additions & 0 deletions scripts/util.in
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ function do_migration () {

{
set -x
# XXX: Paranoia; a cache rebuild _with_ the URI, to ensure that anything
# that makes use of the `--uri` to do things will have an appropriate one.
# (lookin' at you, dgi_migrate_foxml_standard_mods_xslt dealio)
wwwdo $DRUSH cache:rebuild "--root=$DRUPAL_ROOT" "--uri=$URI"
# The base import
wwwdo $TIME --verbose $DRUSH dgi-migrate:import "--root=$DRUPAL_ROOT" "--uri=$URI" "--user=$DRUPAL_USER" "--group=$MIGRATION_GROUP" "${@:2}" |& wwwdo tee $IMPORT_LOG > /dev/null
wwwdo mkdir -p $MESSAGES_DIR
Expand Down Expand Up @@ -119,6 +123,10 @@ function do_rollback () {

{
set -x
# XXX: Paranoia; a cache rebuild _with_ the URI, to ensure that anything
# that makes use of the `--uri` to do things will have an appropriate one.
# (lookin' at you, things involving Fedora dealio)
wwwdo $DRUSH cache:rebuild "--root=$DRUPAL_ROOT" "--uri=$URI"
# The base rollback.
wwwdo $TIME --verbose $DRUSH dgi-migrate:rollback --root=$DRUPAL_ROOT --uri=$URI --user=$DRUPAL_USER --group=$MIGRATION_GROUP "${@:2}" |& wwwdo tee $ROLLBACK_LOG > /dev/null
set +x
Expand Down

0 comments on commit e0c70f7

Please sign in to comment.