-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add index for verification_id in pact_version_provider_tag_succ…
…essful_verifications table
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
db/migrations/20221208_add_index_to_pact_version_provider_tag_successful_verifications.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 @@ | ||
require_relative "migration_helper" | ||
|
||
include PactBroker::MigrationHelper | ||
|
||
Sequel.migration do | ||
up do | ||
if !mysql? | ||
alter_table(:pact_version_provider_tag_successful_verifications) do | ||
add_index([:verification_id], name: "pact_version_provider_tag_successful_verifications_verification_id_index") | ||
end | ||
end | ||
end | ||
|
||
down do | ||
if !mysql? | ||
alter_table(:pact_version_provider_tag_successful_verifications) do | ||
drop_index([:verification_id], name: "pact_version_provider_tag_successful_verifications_verification_id_index") | ||
end | ||
end | ||
end | ||
end |