Sha256: 6c95e0071a056eee4430eaac489bb9e72ea90618163166793c6be67654c8d297

Contents?: true

Size: 472 Bytes

Versions: 6

Compression:

Stored size: 472 Bytes

Contents

require_relative "migration_helper"

include PactBroker::MigrationHelper

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pact_broker-2.112.0 db/migrations/20230428_add_index_for_webhook_executions_pact_publication_id.rb
pact_broker-2.111.0 db/migrations/20230428_add_index_for_webhook_executions_pact_publication_id.rb
pact_broker-2.109.1 db/migrations/20230428_add_index_for_webhook_executions_pact_publication_id.rb
pact_broker-2.109.0 db/migrations/20230428_add_index_for_webhook_executions_pact_publication_id.rb
pact_broker-2.108.0 db/migrations/20230428_add_index_for_webhook_executions_pact_publication_id.rb
pact_broker-2.107.1 db/migrations/20230428_add_index_for_webhook_executions_pact_publication_id.rb