From 0e1aefaf00d19a616f86c0de03147c0cbbfee472 Mon Sep 17 00:00:00 2001 From: Rob Kaufman Date: Mon, 2 Dec 2024 17:40:55 -0800 Subject: [PATCH] fixing importers/exporters --- db/migrate/20241203010707_entry_error_denormalization.rb | 4 ++-- spec/test_app/db/schema.rb | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/db/migrate/20241203010707_entry_error_denormalization.rb b/db/migrate/20241203010707_entry_error_denormalization.rb index 70a5772f..c81c5cc5 100644 --- a/db/migrate/20241203010707_entry_error_denormalization.rb +++ b/db/migrate/20241203010707_entry_error_denormalization.rb @@ -1,7 +1,7 @@ class EntryErrorDenormalization < ActiveRecord::Migration[6.1] def change add_column :bulkrax_entries, :error_class, :string unless column_exists?(:bulkrax_entries, :error_class) - add_column :bulkrax_importers, :error_class, :string unless column_exists?(:bulkrax_entries, :error_class) - add_column :bulkrax_exporters, :error_class, :string unless column_exists?(:bulkrax_entries, :error_class) + add_column :bulkrax_importers, :error_class, :string unless column_exists?(:bulkrax_importers, :error_class) + add_column :bulkrax_exporters, :error_class, :string unless column_exists?(:bulkrax_exporters, :error_class) end end diff --git a/spec/test_app/db/schema.rb b/spec/test_app/db/schema.rb index 7b6303ef..c57a7ced 100644 --- a/spec/test_app/db/schema.rb +++ b/spec/test_app/db/schema.rb @@ -79,6 +79,7 @@ t.boolean "include_thumbnails", default: false t.boolean "generated_metadata", default: false t.string "status_message", default: "Pending" + t.string "error_class" t.index ["user_id"], name: "index_bulkrax_exporters_on_user_id" end @@ -102,6 +103,8 @@ t.integer "total_file_set_entries", default: 0 t.integer "processed_works", default: 0 t.integer "failed_works", default: 0 + t.integer "processed_children", default: 0 + t.integer "failed_children", default: 0 t.index ["importer_id"], name: "index_bulkrax_importer_runs_on_importer_id" end @@ -122,6 +125,7 @@ t.string "status_message", default: "Pending" t.datetime "last_imported_at" t.datetime "next_import_at" + t.string "error_class" t.index ["user_id"], name: "index_bulkrax_importers_on_user_id" end