-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
94 additions
and
14 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
13 changes: 13 additions & 0 deletions
13
...grate/20180107164929_add_constraints_to_most_recent_for_inter_library_loan_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 AddConstraintsToMostRecentForInterLibraryLoanTransitions < ActiveRecord::Migration | ||
disable_ddl_transaction! | ||
|
||
def up | ||
add_index :inter_library_loan_transitions, [:inter_library_loan_id, :most_recent], unique: true, where: "most_recent", name: "index_inter_library_loan_transitions_parent_most_recent" #, algorithm: :concurrently | ||
change_column_null :inter_library_loan_transitions, :most_recent, false | ||
end | ||
|
||
def down | ||
remove_index :inter_library_loan_transitions, name: "index_inter_library_loan_transitions_parent_most_recent" | ||
change_column_null :inter_library_loan_transitions, :most_recent, true | ||
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module EnjuInterLibraryLoan | ||
VERSION = "0.2.0" | ||
VERSION = "0.2.1" | ||
end |
13 changes: 13 additions & 0 deletions
13
...igrate/20180107161311_add_constraints_to_most_recent_for_agent_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 AddConstraintsToMostRecentForAgentImportFileTransitions < ActiveRecord::Migration | ||
disable_ddl_transaction! | ||
|
||
def up | ||
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 | ||
change_column_null :agent_import_file_transitions, :most_recent, false | ||
end | ||
|
||
def down | ||
remove_index :agent_import_file_transitions, name: "index_agent_import_file_transitions_parent_most_recent" | ||
change_column_null :agent_import_file_transitions, :most_recent, true | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
...ate/20180107161331_add_constraints_to_most_recent_for_resource_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 AddConstraintsToMostRecentForResourceImportFileTransitions < ActiveRecord::Migration | ||
disable_ddl_transaction! | ||
|
||
def up | ||
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 | ||
change_column_null :resource_import_file_transitions, :most_recent, false | ||
end | ||
|
||
def down | ||
remove_index :resource_import_file_transitions, name: "index_resource_import_file_transitions_parent_most_recent" | ||
change_column_null :resource_import_file_transitions, :most_recent, true | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
...ate/20180107161347_add_constraints_to_most_recent_for_resource_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 AddConstraintsToMostRecentForResourceExportFileTransitions < ActiveRecord::Migration | ||
disable_ddl_transaction! | ||
|
||
def up | ||
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 | ||
change_column_null :resource_export_file_transitions, :most_recent, false | ||
end | ||
|
||
def down | ||
remove_index :resource_export_file_transitions, name: "index_resource_export_file_transitions_parent_most_recent" | ||
change_column_null :resource_export_file_transitions, :most_recent, true | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
...b/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_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 AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migration | ||
disable_ddl_transaction! | ||
|
||
def up | ||
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 | ||
change_column_null :import_request_transitions, :most_recent, false | ||
end | ||
|
||
def down | ||
remove_index :import_request_transitions, name: "index_import_request_transitions_parent_most_recent" | ||
change_column_null :import_request_transitions, :most_recent, true | ||
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
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