Sha256: a2a08be3e73151d2771df7734f35352c93e3cdf45caed638ce82633071565a6a

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

require_relative "migration_helper"

include PactBroker::MigrationHelper

Sequel.migration do
  up do
    if !mysql?
      alter_table(:branch_heads) do
        add_index([:branch_version_id], name: "branch_heads_branch_version_id_index")
      end
    end
  end

  down do
    if !mysql?
      alter_table(:branch_heads) do
        drop_index([:branch_version_id], name: "branch_heads_branch_version_id_index")
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact_broker-2.112.0 db/migrations/20230216_add_branch_heads_branch_version_id_index.rb
pact_broker-2.111.0 db/migrations/20230216_add_branch_heads_branch_version_id_index.rb
pact_broker-2.109.1 db/migrations/20230216_add_branch_heads_branch_version_id_index.rb
pact_broker-2.109.0 db/migrations/20230216_add_branch_heads_branch_version_id_index.rb
pact_broker-2.108.0 db/migrations/20230216_add_branch_heads_branch_version_id_index.rb
pact_broker-2.107.1 db/migrations/20230216_add_branch_heads_branch_version_id_index.rb
pact_broker-2.107.0 db/migrations/20230216_add_branch_heads_branch_version_id_index.rb
pact_broker-2.107.0.beta.1 db/migrations/20230216_add_branch_heads_branch_version_id_index.rb