Sha256: 50ea9fb542f6c552dd81b259545c2244ba3ceb2cdc9ad904b3bc8bfecf5f4338

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 Bytes

Contents

Dor::Processable.on_upgrade '3.5.0', 'Replace individual *WF datastreams with unified workflows datastream' do |obj|
  run = false
  # Touch workflows datastream to ensure it gets saved
  if obj.workflows.new?
    obj.workflows.content
    run = true
  end

  # Remove individual *WF datastreams
  obj.datastreams.each_pair do |dsid,ds|
    if ds.controlGroup == 'E' && dsid =~ /WF$/
      ds.delete
      run = true
    end
  end
  run
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dor-services-4.25.1 lib/dor/migrations/processable/unify_workflows.rb
dor-services-4.25.0 lib/dor/migrations/processable/unify_workflows.rb
dor-services-4.24.0 lib/dor/migrations/processable/unify_workflows.rb
dor-services-4.23.0 lib/dor/migrations/processable/unify_workflows.rb
dor-services-4.22.6 lib/dor/migrations/processable/unify_workflows.rb
dor-services-4.22.5 lib/dor/migrations/processable/unify_workflows.rb
dor-services-4.22.4 lib/dor/migrations/processable/unify_workflows.rb
dor-services-5.2.0 lib/dor/migrations/processable/unify_workflows.rb