Skip to content

Commit

Permalink
feat: add index for verification_id in pact_version_provider_tag_succ…
Browse files Browse the repository at this point in the history
…essful_verifications table
  • Loading branch information
bethesque committed Dec 8, 2022
1 parent 3b46847 commit b82a773
Showing 1 changed file with 21 additions and 0 deletions.
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

0 comments on commit b82a773

Please sign in to comment.