Skip to content

Commit

Permalink
feat: add consumer_version_id index to latest_pact_publication_ids_fo…
Browse files Browse the repository at this point in the history
…r_consumer_versions
  • Loading branch information
bethesque committed Jan 31, 2023
1 parent ba8e478 commit b75ca5e
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require_relative "migration_helper"

include PactBroker::MigrationHelper

Sequel.migration do
up do
alter_table(:latest_pact_publication_ids_for_consumer_versions) do
add_index([:consumer_version_id], name: "latest_pp_ids_for_cons_ver_con_ver_id_ndx")
end
end

down do
alter_table(:latest_pact_publication_ids_for_consumer_versions) do
drop_index([:consumer_version_id], name: "latest_pp_ids_for_cons_ver_con_ver_id_ndx")
end
end
end

0 comments on commit b75ca5e

Please sign in to comment.