Skip to content

Commit

Permalink
feat: add index to webhook_executions pact_publication_id column
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Apr 28, 2023
1 parent aadafef commit 37d1a4c
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Sequel.migration do
up do
if !mysql?
alter_table(:webhook_executions) do
add_index([:pact_publication_id], name: "webhook_executions_pact_publication_id_index")
end
end
end

down do
if !mysql?
alter_table(:webhook_executions) do
drop_index([:pact_publication_id], name: "webhook_executions_pact_publication_id_index")
end
end
end
end

0 comments on commit 37d1a4c

Please sign in to comment.