-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
267 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
spec/dummy/db/migrate/20100925074639_create_event_import_results.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class AddDefaultLibraryIdToEventImportFile < ActiveRecord::Migration[4.2] | ||
def change | ||
add_column :event_import_files, :default_library_id, :integer | ||
add_reference :event_import_files, :default_library | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20140812152348_create_event_export_files.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class AddDefaultEventCategoryIdToEventImportFile < ActiveRecord::Migration[4.2] | ||
def change | ||
add_column :event_import_files, :default_event_category_id, :integer | ||
add_reference :event_import_files, :default_event_category | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class CreatePlaces < ActiveRecord::Migration[4.2] | ||
def change | ||
create_table :places do |t| | ||
t.string :term | ||
t.text :city | ||
t.references :country, index: true | ||
t.float :latitude | ||
t.float :longitude | ||
|
||
t.timestamps null: false | ||
end | ||
add_index :places, :term | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
spec/dummy/db/migrate/20151201163718_add_place_id_to_event.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddPlaceIdToEvent < ActiveRecord::Migration[4.2] | ||
def change | ||
add_reference :events, :place, index: true | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
spec/dummy/db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddMostRecentToEventImportFileTransitions < ActiveRecord::Migration[4.2] | ||
def up | ||
add_column :event_import_file_transitions, :most_recent, :boolean, null: true | ||
end | ||
|
||
def down | ||
remove_column :event_import_file_transitions, :most_recent | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
spec/dummy/db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddMostRecentToEventExportFileTransitions < ActiveRecord::Migration[4.2] | ||
def up | ||
add_column :event_export_file_transitions, :most_recent, :boolean, null: true | ||
end | ||
|
||
def down | ||
remove_column :event_export_file_transitions, :most_recent | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
...igrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class AddConstraintsToMostRecentForEventImportFileTransitions < ActiveRecord::Migration[4.2] | ||
disable_ddl_transaction! | ||
|
||
def up | ||
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 | ||
change_column_null :event_import_file_transitions, :most_recent, false | ||
end | ||
|
||
def down | ||
remove_index :event_import_file_transitions, name: "index_event_import_file_transitions_parent_most_recent" | ||
change_column_null :event_import_file_transitions, :most_recent, true | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
...igrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class AddConstraintsToMostRecentForEventExportFileTransitions < ActiveRecord::Migration[4.2] | ||
disable_ddl_transaction! | ||
|
||
def up | ||
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 | ||
change_column_null :event_export_file_transitions, :most_recent, false | ||
end | ||
|
||
def down | ||
remove_index :event_export_file_transitions, name: "index_event_export_file_transitions_parent_most_recent" | ||
change_column_null :event_export_file_transitions, :most_recent, true | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
...dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddForeignKeyToEventsReferencingEventCategories < ActiveRecord::Migration[5.1] | ||
def change | ||
add_foreign_key :events, :event_categories | ||
end | ||
end |
6 changes: 6 additions & 0 deletions
6
spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class AddDisplayNameTranslationsToEvent < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :event_categories, :display_name_translations, :jsonb, default: {}, null: false | ||
add_column :events, :display_name_translations, :jsonb, default: {}, null: false | ||
end | ||
end |
21 changes: 21 additions & 0 deletions
21
spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class AddDisplayNameTranslationsToCarrierType < ActiveRecord::Migration[5.2] | ||
def change | ||
[ | ||
:agent_relationship_types, | ||
:agent_types, | ||
:carrier_types, | ||
:content_types, | ||
:create_types, | ||
:form_of_works, | ||
:frequencies, | ||
:languages, | ||
:licenses, | ||
:manifestation_relationship_types, | ||
:medium_of_performances, | ||
:produce_types, | ||
:realize_types | ||
].each do |table| | ||
add_column table, :display_name_translations, :jsonb, default: {}, null: false | ||
end | ||
end | ||
end |
Oops, something went wrong.