This repository has been archived by the owner on Jun 27, 2020. It is now read-only.
Releases: duke-libraries/dul-hydra
Releases · duke-libraries/dul-hydra
v4.1.2
v4.1.0
v4.0.0
Upgrade Notes:
Preparation
- Be sure following scripts are in user hydra's bin directory:
- delete_legacy_struct_metadata.rb
- migrate_legacy_auth.rb
Dul-hydra
- rails runner -e production ~/bin/delete_legacy_struct_metadata.rb
- rake dul_hydra:queues:stop
- git checkout v4.0.3
- bundle install
- rake db:migrate
- rake assets:clean
- rake assets:precompile
- rake dul_hydra:queues:start
- rails runner -e production ~/bin/migrate_legacy_auth.rb
- rake dul_hydra:index:update_all
v3.3.0
3.2.0
v3.1.7
v3.1.5
v3.1.0
Upgrade Notes:
- Update gemset with
bundle install
- Run migrations:
rake db:migrate
- In config/environments/production.rb:
- REMOVE
DulHydra::Services::Antivirus.load!
- [ADD
Ddr::Models.auto_assign_permanent_ids = true
] - ADD
Ddr::Auth.require_shib_user_authn = true
- REMOVE
- In local_env.yml, add appropriate settings
- EZID_USER
- EZID_PASSWORD
- EZID_DEFAULT_SHOULDER
- METADATA_FILE_CREATORS_GROUP
- COLLECTION_CREATORS_GROUP
- In local_env.yml, remove the following entries
- EXTERNAL_FILE_STORE
- EXTERNAL_FILE_SUBPATH_PATTERN
- MINTER_STATEFILE
- Stop and start resque-pool. To start resque-pool:
resque-pool --daemon --environment production
- Uninstall
clamav
from gemset - Configure Ddr::Antivirus to use
:clamd
adapter. - Run SQL update:
update events set type = concat("Ddr::Events::", type);
- To update the events table after running the migration, run this code:
Ddr::Events::Event.joins(:user).includes(:user).find_each do |e|
e.user_key = e.user.user_key
e.save
end
- For all existing Collections, set collection.admin_policy to the collection itself:
Collection.find_each do |c|
c.admin_policy = c
c.save
end
- Run script to migrate original_filename from properties datastream to adminMetadata datastream. All Component objects also need to reindexed to include new field for Collection URI. Check counts with queries:
Component.where("original_filename_ssim:*").count
Component.count