enju_event 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/event_export_file.rb +1 -1
  3. data/app/models/event_export_file_transition.rb +1 -1
  4. data/app/models/event_import_file.rb +1 -1
  5. data/app/models/event_import_file_transition.rb +1 -1
  6. data/db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb +13 -0
  7. data/db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb +13 -0
  8. data/lib/enju_event/version.rb +1 -1
  9. data/spec/dummy/db/migrate/059_create_libraries.rb +7 -9
  10. data/spec/dummy/db/migrate/069_create_shelves.rb +3 -4
  11. data/spec/dummy/db/migrate/080_create_library_groups.rb +2 -3
  12. data/spec/dummy/db/migrate/120_create_baskets.rb +2 -3
  13. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +4 -7
  14. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +4 -5
  15. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  16. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +3 -6
  17. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  18. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +2 -2
  19. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -2
  20. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +1 -1
  21. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
  22. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
  23. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
  24. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +1 -3
  25. data/spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb +5 -0
  26. data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +3 -5
  27. data/spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb +6 -0
  28. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +19 -6
  29. data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +15 -2
  30. data/spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb +9 -0
  31. data/spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb +9 -0
  32. data/spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb +9 -0
  33. data/spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb +9 -0
  34. data/spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb +6 -0
  35. data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +11 -0
  36. data/spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb +5 -0
  37. data/spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb +5 -0
  38. data/spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb +5 -0
  39. data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +13 -0
  40. data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +13 -0
  41. data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +13 -0
  42. data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +13 -0
  43. data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +13 -0
  44. data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +13 -0
  45. data/spec/dummy/db/schema.rb +29 -7
  46. metadata +39 -4
  47. data/lib/generators/enju_event/update/update_generator.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d99877025e7784515792d2b90083641c8ed0734
4
- data.tar.gz: a9e75b8518656abb4123f3a12d080561b0d27ed8
3
+ metadata.gz: 5bece4e0a86efb314fecfd3d18d96cdea9c934b8
4
+ data.tar.gz: 848acc1f94a15a5ebb6a54ca63daea3052ddd4c8
5
5
  SHA512:
6
- metadata.gz: 72473dec7be540b1eea074363a779b241df9a5eee314cc0a110ed593cb45d2e8f84340461fac52e86aaf30affd6bdd79e4190ca38cf041345b6c9bdbed81c3df
7
- data.tar.gz: 4f173ff7046e4351f0ada781acbbc3748fd38533fa7b621b08bfcf99462952cf5addab78decc537098965f9092cbea92b37f430aec0846a2c0d1cfa6965473d8
6
+ metadata.gz: 016aed2e25ca6490c533f087180ebead3ac9051c81424a0694bc133b8728cd41386c62b002d2f4232c46da70b96b2f5152e2220b45413d544b839dad57407cca
7
+ data.tar.gz: 57811159dc062065ec69dd5fb12028432f7951bf3b71a4fd4260dcaf84e5700c464eff1b5bd8161febbd3fbcfc460fc523831f61cbeefd4f30960dba902759de
@@ -16,7 +16,7 @@ class EventExportFile < ActiveRecord::Base
16
16
  path: ":rails_root/private/system/:class/:attachment/:id_partition/:style/:filename"
17
17
  end
18
18
  validates_attachment_content_type :event_export, :content_type => /\Atext\/plain\Z/
19
- has_many :event_export_file_transitions
19
+ has_many :event_export_file_transitions, autosave: false
20
20
 
21
21
  def state_machine
22
22
  EventExportFileStateMachine.new(self, transition_class: EventExportFileTransition)
@@ -17,5 +17,5 @@ end
17
17
  # event_export_file_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
- # most_recent :boolean
20
+ # most_recent :boolean not null
21
21
  #
@@ -31,7 +31,7 @@ class EventImportFile < ActiveRecord::Base
31
31
  belongs_to :default_event_category, class_name: 'EventCategory'
32
32
  has_many :event_import_results
33
33
 
34
- has_many :event_import_file_transitions
34
+ has_many :event_import_file_transitions, autosave: false
35
35
 
36
36
  attr_accessor :mode
37
37
 
@@ -17,5 +17,5 @@ end
17
17
  # event_import_file_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
- # most_recent :boolean
20
+ # most_recent :boolean not null
21
21
  #
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForEventImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :event_import_file_transitions, [:event_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_event_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :event_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :event_import_file_transitions, name: "index_event_import_file_transitions_parent_most_recent"
11
+ change_column_null :event_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForEventExportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :event_export_file_transitions, [:event_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_event_export_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :event_export_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :event_export_file_transitions, name: "index_event_export_file_transitions_parent_most_recent"
11
+ change_column_null :event_export_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuEvent
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,9 +1,9 @@
1
1
  class CreateLibraries < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :libraries do |t|
4
- t.string :name, :null => false
4
+ t.string :name, index: true, null: false
5
5
  t.text :display_name
6
- t.string :short_display_name, :null => false
6
+ t.string :short_display_name, null: false
7
7
  t.string :zip_code
8
8
  t.text :street
9
9
  t.text :locality
@@ -12,17 +12,15 @@ class CreateLibraries < ActiveRecord::Migration
12
12
  t.string :telephone_number_2
13
13
  t.string :fax_number
14
14
  t.text :note
15
- t.integer :call_number_rows, :default => 1, :null => false
16
- t.string :call_number_delimiter, :default => "|", :null => false
17
- t.integer :library_group_id, :default => 1, :null => false
18
- t.integer :users_count, :default => 0, :null => false
15
+ t.integer :call_number_rows, default: 1, null: false
16
+ t.string :call_number_delimiter, default: "|", null: false
17
+ t.references :library_group, index: true, null: false
18
+ t.integer :users_count, default: 0, null: false
19
19
  t.integer :position
20
- t.integer :country_id
20
+ t.references :country
21
21
 
22
22
  t.timestamps
23
23
  t.datetime :deleted_at
24
24
  end
25
- add_index :libraries, :library_group_id
26
- add_index :libraries, :name, :unique => true
27
25
  end
28
26
  end
@@ -1,15 +1,14 @@
1
1
  class CreateShelves < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :shelves do |t|
4
- t.string :name, :null => false
4
+ t.string :name, null: false
5
5
  t.text :display_name
6
6
  t.text :note
7
- t.integer :library_id, :default => 1, :null => false
8
- t.integer :items_count, :default => 0, :null => false
7
+ t.references :library, index: true, null: false
8
+ t.integer :items_count, default: 0, null: false
9
9
  t.integer :position
10
10
  t.timestamps
11
11
  t.datetime :deleted_at
12
12
  end
13
- add_index :shelves, :library_id
14
13
  end
15
14
  end
@@ -1,9 +1,9 @@
1
1
  class CreateLibraryGroups < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :library_groups do |t|
4
- t.string :name, :null => false
4
+ t.string :name, null: false
5
5
  t.text :display_name
6
- t.string :short_name, :null => false
6
+ t.string :short_name, index: true, null: false
7
7
  t.text :my_networks
8
8
  t.text :login_banner
9
9
  t.text :note
@@ -12,6 +12,5 @@ class CreateLibraryGroups < ActiveRecord::Migration
12
12
 
13
13
  t.timestamps
14
14
  end
15
- add_index :library_groups, :short_name
16
15
  end
17
16
  end
@@ -1,12 +1,11 @@
1
1
  class CreateBaskets < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :baskets do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.text :note
6
- t.integer :lock_version, :default => 0, :null => false
6
+ t.integer :lock_version, default: 0, null: false
7
7
 
8
8
  t.timestamps
9
9
  end
10
- add_index :baskets, :user_id
11
10
  end
12
11
  end
@@ -1,17 +1,14 @@
1
1
  class CreateSubscriptions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :subscriptions do |t|
4
- t.text :title, :null => false
4
+ t.text :title, null: false
5
5
  t.text :note
6
- #t.integer :subscription_list_id, :integer
7
- t.integer :user_id
8
- t.integer :order_list_id
6
+ t.references :user, index: true
7
+ t.references :order_list, index: true
9
8
  t.datetime :deleted_at
10
- t.integer :subscribes_count, :default => 0, :null => false
9
+ t.integer :subscribes_count, default: 0, null: false
11
10
 
12
11
  t.timestamps
13
12
  end
14
- add_index :subscriptions, :user_id
15
- add_index :subscriptions, :order_list_id
16
13
  end
17
14
  end
@@ -1,14 +1,13 @@
1
1
  class CreateSubscribes < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :subscribes do |t|
4
- t.integer :subscription_id, :null => false
5
- t.integer :work_id, :null => false
6
- t.datetime :start_at, :null => false
7
- t.datetime :end_at, :null => false
4
+ t.references :subscription, index: true, null: false
5
+ t.integer :work_id, null: false
6
+ t.datetime :start_at, null: false
7
+ t.datetime :end_at, null: false
8
8
 
9
9
  t.timestamps
10
10
  end
11
- add_index :subscribes, :subscription_id
12
11
  add_index :subscribes, :work_id
13
12
  end
14
13
  end
@@ -8,7 +8,7 @@ class AddDcndlSchema < ActiveRecord::Migration
8
8
  add_column :manifestations, :valid_until, :timestamp
9
9
  add_column :manifestations, :date_submitted, :timestamp
10
10
  add_column :manifestations, :date_accepted, :timestamp
11
- add_column :manifestations, :date_caputured, :timestamp
11
+ add_column :manifestations, :date_captured, :timestamp
12
12
  rename_column :manifestations, :copyright_date, :date_copyrighted
13
13
  end
14
14
 
@@ -21,7 +21,7 @@ class AddDcndlSchema < ActiveRecord::Migration
21
21
  remove_column :manifestations, :valid_until
22
22
  remove_column :manifestations, :date_submitted
23
23
  remove_column :manifestations, :date_accepted
24
- remove_column :manifestations, :date_caputured
24
+ remove_column :manifestations, :date_captured
25
25
  rename_column :manifestations, :date_copyrighted, :copyright_date
26
26
  end
27
27
  end
@@ -1,14 +1,11 @@
1
1
  class CreateAccepts < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :accepts do |t|
4
- t.integer :basket_id
5
- t.integer :item_id
6
- t.integer :librarian_id
4
+ t.references :basket, index: true
5
+ t.references :item, index: true
6
+ t.references :librarian, index: true
7
7
 
8
8
  t.timestamps
9
9
  end
10
-
11
- add_index :accepts, :basket_id
12
- add_index :accepts, :item_id
13
10
  end
14
11
  end
@@ -1,7 +1,7 @@
1
1
  class CreateUserImportFiles < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_import_files do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.text :note
6
6
  t.datetime :executed_at
7
7
  t.string :user_import_file_name
@@ -1,8 +1,8 @@
1
1
  class CreateUserImportResults < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_import_results do |t|
4
- t.integer :user_import_file_id
5
- t.integer :user_id
4
+ t.references :user_import_file, index: true
5
+ t.references :user, index: true
6
6
  t.text :body
7
7
 
8
8
  t.timestamps
@@ -8,11 +8,10 @@ class CreateUserImportFileTransitions < ActiveRecord::Migration
8
8
  t.text :metadata, default: "{}"
9
9
  end
10
10
  t.integer :sort_key
11
- t.integer :user_import_file_id
11
+ t.references :user_import_file, index: true
12
12
  t.timestamps
13
13
  end
14
14
 
15
- add_index :user_import_file_transitions, :user_import_file_id
16
15
  add_index :user_import_file_transitions, [:sort_key, :user_import_file_id], unique: true, name: "index_user_import_file_transitions_on_sort_key_and_file_id"
17
16
  end
18
17
  end
@@ -1,7 +1,7 @@
1
1
  class CreateUserExportFiles < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_export_files do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.attachment :user_export
6
6
  t.datetime :executed_at
7
7
 
@@ -8,7 +8,7 @@ class CreateUserExportFileTransitions < ActiveRecord::Migration
8
8
  t.text :metadata, default: "{}"
9
9
  end
10
10
  t.integer :sort_key
11
- t.integer :user_export_file_id
11
+ t.references :user_export_file, index: true
12
12
  t.timestamps
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  class AddDefaultLibraryIdToUserImportFile < ActiveRecord::Migration
2
2
  def change
3
- add_column :user_import_files, :default_library_id, :integer
3
+ add_reference :user_import_files, :default_library
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  class AddDefaultUserGroupIdToUserImportFile < ActiveRecord::Migration
2
2
  def change
3
- add_column :user_import_files, :default_user_group_id, :integer
3
+ add_reference :user_import_files, :default_user_group
4
4
  end
5
5
  end
@@ -1,14 +1,12 @@
1
1
  class CreateColors < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :colors do |t|
4
- t.integer :library_group_id
4
+ t.references :library_group, index: true
5
5
  t.string :property
6
6
  t.string :code
7
7
  t.integer :position
8
8
 
9
9
  t.timestamps
10
10
  end
11
-
12
- add_index :colors, :library_group_id
13
11
  end
14
12
  end
@@ -0,0 +1,5 @@
1
+ class AddForeignKeyToItemsReferencingManifestations < ActiveRecord::Migration
2
+ def change
3
+ add_foreign_key :items, :manifestations
4
+ end
5
+ end
@@ -1,13 +1,11 @@
1
1
  class CreateWithdraws < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :withdraws do |t|
4
- t.integer :basket_id
5
- t.integer :item_id
6
- t.integer :librarian_id
4
+ t.references :basket, index: true
5
+ t.references :item, index: true
6
+ t.references :librarian, index: true
7
7
 
8
8
  t.timestamps null: false
9
9
  end
10
- add_index :withdraws, :basket_id
11
- add_index :withdraws, :item_id
12
10
  end
13
11
  end
@@ -0,0 +1,6 @@
1
+ class AddProfileIdToAgent < ActiveRecord::Migration
2
+ def change
3
+ add_column :agents, :profile_id, :integer
4
+ add_index :agents, :profile_id
5
+ end
6
+ end
@@ -1,13 +1,26 @@
1
+ # This migration comes from enju_library_engine (originally 20151213070943)
1
2
  class AddTranslationTableToLibraryGroup < ActiveRecord::Migration
2
3
  def up
3
- LibraryGroup.create_translation_table!({
4
- login_banner: :text
5
- }, {
6
- migrate_data: true
7
- })
4
+ if defined?(Globalize)
5
+ LibraryGroup.create_translation_table!({
6
+ login_banner: :text
7
+ }, {
8
+ migrate_data: true
9
+ })
10
+ end
11
+
12
+ if defined?(AwesomeHstoreTranslate)
13
+ add_column :library_groups, :login_banner, :hstore
14
+ end
8
15
  end
9
16
 
10
17
  def down
11
- LibraryGroup.drop_translation_table! migrate_data: true
18
+ if defined?(Globalize)
19
+ LibraryGroup.drop_translation_table! migrate_data: true
20
+ end
21
+
22
+ if defined?(AwesomeHstoreTranslate)
23
+ remove_column :library_groups, :login_banner
24
+ end
12
25
  end
13
26
  end
@@ -1,9 +1,22 @@
1
+ # This migration comes from enju_library_engine (originally 20151213072705)
1
2
  class AddFooterBannerToLibraryGroup < ActiveRecord::Migration
2
3
  def up
3
- LibraryGroup.add_translation_fields! footer_banner: :text
4
+ if defined?(Globalize)
5
+ LibraryGroup.add_translation_fields! footer_banner: :text
6
+ end
7
+
8
+ if defined?(AwesomeHstoreTranslate)
9
+ add_column :library_groups, :footer_banner, :hstore
10
+ end
4
11
  end
5
12
 
6
13
  def down
7
- remove_column :library_group_translations, :footer_banner
14
+ if defined?(Globalize)
15
+ remove_column :library_group_translations, :footer_banner
16
+ end
17
+
18
+ if defined?(AwesomeHstoreTranslate)
19
+ remove_column :library_groups, :footer_banner
20
+ end
8
21
  end
9
22
  end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToImportRequestTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :import_request_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :import_request_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToResourceImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :resource_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :resource_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToResourceExportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :resource_export_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :resource_export_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToAgentImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :agent_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :agent_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ class AddPictureWidthToPictureFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :picture_files, :picture_width, :integer
4
+ add_column :picture_files, :picture_height, :integer
5
+ end
6
+ end
@@ -0,0 +1,11 @@
1
+ class AddAttachmentAttachmentToCarrierTypes < ActiveRecord::Migration
2
+ def self.up
3
+ change_table :carrier_types do |t|
4
+ t.attachment :attachment
5
+ end
6
+ end
7
+
8
+ def self.down
9
+ remove_attachment :carrier_types, :attachment
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ class AddCsvCharsetConversionToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :csv_charset_conversion, :boolean, null: false, default: false
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class SetNotNullToManifestationIdOnItems < ActiveRecord::Migration
2
+ def change
3
+ change_column_null :items, :manifestation_id, false
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddHeaderLogoMetaToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :header_logo_meta, :text
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForUserImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :user_import_file_transitions, [:user_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_user_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :user_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :user_import_file_transitions, name: "index_user_import_file_transitions_parent_most_recent"
11
+ change_column_null :user_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForUserExportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :user_export_file_transitions, [:user_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_user_export_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :user_export_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :user_export_file_transitions, name: "index_user_export_file_transitions_parent_most_recent"
11
+ change_column_null :user_export_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForAgentImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :agent_import_file_transitions, [:agent_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_agent_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :agent_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :agent_import_file_transitions, name: "index_agent_import_file_transitions_parent_most_recent"
11
+ change_column_null :agent_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForResourceImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :resource_import_file_transitions, [:resource_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_resource_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :resource_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :resource_import_file_transitions, name: "index_resource_import_file_transitions_parent_most_recent"
11
+ change_column_null :resource_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForResourceExportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :resource_export_file_transitions, [:resource_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_resource_export_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :resource_export_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :resource_export_file_transitions, name: "index_resource_export_file_transitions_parent_most_recent"
11
+ change_column_null :resource_export_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :import_request_transitions, [:import_request_id, :most_recent], unique: true, where: "most_recent", name: "index_import_request_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :import_request_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :import_request_transitions, name: "index_import_request_transitions_parent_most_recent"
11
+ change_column_null :import_request_transitions, :most_recent, true
12
+ end
13
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20171126135238) do
14
+ ActiveRecord::Schema.define(version: 20180107164617) do
15
15
 
16
16
  create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
@@ -31,8 +31,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
31
31
  t.integer "agent_import_file_id"
32
32
  t.datetime "created_at"
33
33
  t.datetime "updated_at"
34
+ t.boolean "most_recent", null: false
34
35
  end
35
36
 
37
+ add_index "agent_import_file_transitions", ["agent_import_file_id", "most_recent"], name: "index_agent_import_file_transitions_parent_most_recent", unique: true
36
38
  add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
37
39
  add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
38
40
 
@@ -158,12 +160,14 @@ ActiveRecord::Schema.define(version: 20171126135238) do
158
160
  t.string "birth_date"
159
161
  t.string "death_date"
160
162
  t.string "agent_identifier"
163
+ t.integer "profile_id"
161
164
  end
162
165
 
163
166
  add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
164
167
  add_index "agents", ["country_id"], name: "index_agents_on_country_id"
165
168
  add_index "agents", ["full_name"], name: "index_agents_on_full_name"
166
169
  add_index "agents", ["language_id"], name: "index_agents_on_language_id"
170
+ add_index "agents", ["profile_id"], name: "index_agents_on_profile_id"
167
171
  add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
168
172
 
169
173
  create_table "baskets", force: :cascade do |t|
@@ -212,12 +216,16 @@ ActiveRecord::Schema.define(version: 20171126135238) do
212
216
  add_index "carrier_type_has_checkout_types", ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
213
217
 
214
218
  create_table "carrier_types", force: :cascade do |t|
215
- t.string "name", null: false
219
+ t.string "name", null: false
216
220
  t.text "display_name"
217
221
  t.text "note"
218
222
  t.integer "position"
219
223
  t.datetime "created_at"
220
224
  t.datetime "updated_at"
225
+ t.string "attachment_file_name"
226
+ t.string "attachment_content_type"
227
+ t.integer "attachment_file_size"
228
+ t.datetime "attachment_updated_at"
221
229
  end
222
230
 
223
231
  create_table "checked_items", force: :cascade do |t|
@@ -391,9 +399,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
391
399
  t.integer "event_export_file_id"
392
400
  t.datetime "created_at"
393
401
  t.datetime "updated_at"
394
- t.boolean "most_recent"
402
+ t.boolean "most_recent", null: false
395
403
  end
396
404
 
405
+ add_index "event_export_file_transitions", ["event_export_file_id", "most_recent"], name: "index_event_export_file_transitions_parent_most_recent", unique: true
397
406
  add_index "event_export_file_transitions", ["event_export_file_id"], name: "index_event_export_file_transitions_on_file_id"
398
407
  add_index "event_export_file_transitions", ["sort_key", "event_export_file_id"], name: "index_event_export_file_transitions_on_sort_key_and_file_id", unique: true
399
408
 
@@ -417,9 +426,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
417
426
  t.integer "event_import_file_id"
418
427
  t.datetime "created_at"
419
428
  t.datetime "updated_at"
420
- t.boolean "most_recent"
429
+ t.boolean "most_recent", null: false
421
430
  end
422
431
 
432
+ add_index "event_import_file_transitions", ["event_import_file_id", "most_recent"], name: "index_event_import_file_transitions_parent_most_recent", unique: true
423
433
  add_index "event_import_file_transitions", ["event_import_file_id"], name: "index_event_import_file_transitions_on_event_import_file_id"
424
434
  add_index "event_import_file_transitions", ["sort_key", "event_import_file_id"], name: "index_event_import_file_transitions_on_sort_key_and_file_id", unique: true
425
435
 
@@ -532,8 +542,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
532
542
  t.integer "import_request_id"
533
543
  t.datetime "created_at"
534
544
  t.datetime "updated_at"
545
+ t.boolean "most_recent", null: false
535
546
  end
536
547
 
548
+ add_index "import_request_transitions", ["import_request_id", "most_recent"], name: "index_import_request_transitions_parent_most_recent", unique: true
537
549
  add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
538
550
  add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
539
551
 
@@ -581,7 +593,7 @@ ActiveRecord::Schema.define(version: 20171126135238) do
581
593
  t.string "binding_item_identifier"
582
594
  t.string "binding_call_number"
583
595
  t.datetime "binded_at"
584
- t.integer "manifestation_id"
596
+ t.integer "manifestation_id", null: false
585
597
  end
586
598
 
587
599
  add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
@@ -689,6 +701,8 @@ ActiveRecord::Schema.define(version: 20171126135238) do
689
701
  t.string "header_logo_content_type"
690
702
  t.integer "header_logo_file_size"
691
703
  t.datetime "header_logo_updated_at"
704
+ t.boolean "csv_charset_conversion", default: false, null: false
705
+ t.text "header_logo_meta"
692
706
  end
693
707
 
694
708
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
@@ -957,6 +971,8 @@ ActiveRecord::Schema.define(version: 20171126135238) do
957
971
  t.datetime "picture_updated_at"
958
972
  t.text "picture_meta"
959
973
  t.string "picture_fingerprint"
974
+ t.integer "picture_width"
975
+ t.integer "picture_height"
960
976
  end
961
977
 
962
978
  add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
@@ -1121,8 +1137,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
1121
1137
  t.integer "resource_export_file_id"
1122
1138
  t.datetime "created_at"
1123
1139
  t.datetime "updated_at"
1140
+ t.boolean "most_recent", null: false
1124
1141
  end
1125
1142
 
1143
+ add_index "resource_export_file_transitions", ["resource_export_file_id", "most_recent"], name: "index_resource_export_file_transitions_parent_most_recent", unique: true
1126
1144
  add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
1127
1145
  add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
1128
1146
 
@@ -1144,8 +1162,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
1144
1162
  t.integer "resource_import_file_id"
1145
1163
  t.datetime "created_at"
1146
1164
  t.datetime "updated_at"
1165
+ t.boolean "most_recent", null: false
1147
1166
  end
1148
1167
 
1168
+ add_index "resource_import_file_transitions", ["resource_import_file_id", "most_recent"], name: "index_resource_import_file_transitions_parent_most_recent", unique: true
1149
1169
  add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
1150
1170
  add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
1151
1171
 
@@ -1333,10 +1353,11 @@ ActiveRecord::Schema.define(version: 20171126135238) do
1333
1353
  t.integer "user_export_file_id"
1334
1354
  t.datetime "created_at"
1335
1355
  t.datetime "updated_at"
1336
- t.boolean "most_recent"
1356
+ t.boolean "most_recent", null: false
1337
1357
  end
1338
1358
 
1339
1359
  add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
1360
+ add_index "user_export_file_transitions", ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true
1340
1361
  add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
1341
1362
 
1342
1363
  create_table "user_export_files", force: :cascade do |t|
@@ -1402,10 +1423,11 @@ ActiveRecord::Schema.define(version: 20171126135238) do
1402
1423
  t.integer "user_import_file_id"
1403
1424
  t.datetime "created_at"
1404
1425
  t.datetime "updated_at"
1405
- t.boolean "most_recent"
1426
+ t.boolean "most_recent", null: false
1406
1427
  end
1407
1428
 
1408
1429
  add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
1430
+ add_index "user_import_file_transitions", ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true
1409
1431
  add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
1410
1432
 
1411
1433
  create_table "user_import_files", force: :cascade do |t|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.2
19
+ version: 0.2.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.2
26
+ version: 0.2.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ri_cal
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -330,13 +330,14 @@ files:
330
330
  - db/migrate/20151201163718_add_place_id_to_event.rb
331
331
  - db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb
332
332
  - db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb
333
+ - db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb
334
+ - db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb
333
335
  - lib/enju_event.rb
334
336
  - lib/enju_event/engine.rb
335
337
  - lib/enju_event/version.rb
336
338
  - lib/generators/enju_event/setup/USAGE
337
339
  - lib/generators/enju_event/setup/setup_generator.rb
338
340
  - lib/generators/enju_event/setup/templates/db/fixtures/event_categories.yml
339
- - lib/generators/enju_event/update/update_generator.rb
340
341
  - lib/tasks/enju_event_tasks.rake
341
342
  - spec/controllers/event_categories_controller_spec.rb
342
343
  - spec/controllers/event_export_files_controller_spec.rb
@@ -550,23 +551,40 @@ files:
550
551
  - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
551
552
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
552
553
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
554
+ - spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb
553
555
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
554
556
  - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
555
557
  - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
558
+ - spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb
556
559
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
557
560
  - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
558
561
  - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
559
562
  - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
560
563
  - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
561
564
  - spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb
565
+ - spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb
566
+ - spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb
567
+ - spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb
568
+ - spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb
569
+ - spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb
562
570
  - spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb
563
571
  - spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
564
572
  - spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb
565
573
  - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
566
574
  - spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb
575
+ - spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb
576
+ - spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb
567
577
  - spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb
578
+ - spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb
568
579
  - spec/dummy/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb
569
580
  - spec/dummy/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb
581
+ - spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb
582
+ - spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
583
+ - spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb
584
+ - spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
585
+ - spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb
586
+ - spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb
587
+ - spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
570
588
  - spec/dummy/db/schema.rb
571
589
  - spec/dummy/public/404.html
572
590
  - spec/dummy/public/422.html
@@ -673,7 +691,9 @@ test_files:
673
691
  - spec/dummy/public/500.html
674
692
  - spec/dummy/public/404.html
675
693
  - spec/dummy/db/schema.rb
694
+ - spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb
676
695
  - spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb
696
+ - spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb
677
697
  - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
678
698
  - spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb
679
699
  - spec/dummy/db/migrate/20090720091429_create_content_types.rb
@@ -707,7 +727,9 @@ test_files:
707
727
  - spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb
708
728
  - spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb
709
729
  - spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb
730
+ - spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb
710
731
  - spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb
732
+ - spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
711
733
  - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
712
734
  - spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
713
735
  - spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb
@@ -722,6 +744,7 @@ test_files:
722
744
  - spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
723
745
  - spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb
724
746
  - spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb
747
+ - spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb
725
748
  - spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb
726
749
  - spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb
727
750
  - spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
@@ -736,6 +759,7 @@ test_files:
736
759
  - spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb
737
760
  - spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb
738
761
  - spec/dummy/db/migrate/131_create_request_types.rb
762
+ - spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb
739
763
  - spec/dummy/db/migrate/20081006093246_create_subscribes.rb
740
764
  - spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb
741
765
  - spec/dummy/db/migrate/133_create_agent_merges.rb
@@ -764,6 +788,7 @@ test_files:
764
788
  - spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
765
789
  - spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb
766
790
  - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
791
+ - spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
767
792
  - spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb
768
793
  - spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
769
794
  - spec/dummy/db/migrate/077_create_user_groups.rb
@@ -777,7 +802,10 @@ test_files:
777
802
  - spec/dummy/db/migrate/20100129142347_create_import_requests.rb
778
803
  - spec/dummy/db/migrate/125_create_donates.rb
779
804
  - spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb
805
+ - spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb
780
806
  - spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb
807
+ - spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb
808
+ - spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb
781
809
  - spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
782
810
  - spec/dummy/db/migrate/154_create_messages.rb
783
811
  - spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb
@@ -795,6 +823,7 @@ test_files:
795
823
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
796
824
  - spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb
797
825
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
826
+ - spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb
798
827
  - spec/dummy/db/migrate/112_create_frequencies.rb
799
828
  - spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb
800
829
  - spec/dummy/db/migrate/20080830154109_create_realizes.rb
@@ -804,6 +833,8 @@ test_files:
804
833
  - spec/dummy/db/migrate/20111124110059_create_create_types.rb
805
834
  - spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb
806
835
  - spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb
836
+ - spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb
837
+ - spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb
807
838
  - spec/dummy/db/migrate/20081027150907_create_picture_files.rb
808
839
  - spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
809
840
  - spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb
@@ -813,9 +844,11 @@ test_files:
813
844
  - spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb
814
845
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
815
846
  - spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb
847
+ - spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
816
848
  - spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
817
849
  - spec/dummy/db/migrate/032_create_checkins.rb
818
850
  - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb
851
+ - spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb
819
852
  - spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb
820
853
  - spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
821
854
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
@@ -838,6 +871,7 @@ test_files:
838
871
  - spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb
839
872
  - spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
840
873
  - spec/dummy/db/migrate/012_create_owns.rb
874
+ - spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb
841
875
  - spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb
842
876
  - spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb
843
877
  - spec/dummy/db/migrate/002_devise_create_users.rb
@@ -851,6 +885,7 @@ test_files:
851
885
  - spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb
852
886
  - spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb
853
887
  - spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb
888
+ - spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb
854
889
  - spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
855
890
  - spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
856
891
  - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
@@ -1,9 +0,0 @@
1
- class EnjuEvent::UpdateGenerator < Rails::Generators::Base
2
- source_root File.expand_path('../templates', __FILE__)
3
- desc "Create files for updating Next-L Enju"
4
-
5
- def copy_migration_files
6
- generate('statesman:add_constraints_to_most_recent', 'EventImportFile', 'EventImportFileTransition')
7
- generate('statesman:add_constraints_to_most_recent', 'EventExportFile', 'EventExportFileTransition')
8
- end
9
- end