Skip to content

Commit

Permalink
🎁 add file_id to pending_relationships table
Browse files Browse the repository at this point in the history
  • Loading branch information
Shana Moore committed Nov 10, 2023
1 parent 1c9daac commit eed6795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ class AddModelDetailsToIiifPrintPendingRelationships < ActiveRecord::Migration[5
def change
add_column :iiif_print_pending_relationships, :parent_model, :string
add_column :iiif_print_pending_relationships, :child_model, :string
add_column :iiif_print_pending_relationships, :file_id, :string
end
end
3 changes: 2 additions & 1 deletion lib/iiif_print/jobs/child_works_from_pdf_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def prepare_import_data(original_pdf_path, image_files, user)
parent_id: @parent_work.id,
child_order: child_title,
parent_model: @parent_work.class,
child_model: @parent_work.iiif_print_config.pdf_split_child_model)
child_model: @parent_work.iiif_print_config.pdf_split_child_model,
file_id: file_id)

begin
# Clean up the temporary image path.
Expand Down

0 comments on commit eed6795

Please sign in to comment.