Sha256: ec493fd1e4acf759c2c389147bc17cfd0a005415dd7aa1d06994677a449ed183

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

Sequel.migration do
  up do
    alter_table(:versions) do
      # Not actually sure which index it will use for OrderVersions, so CREATE ALL THE INDEXES!
      add_index [:number], name: 'ndx_ver_num' # Not sure if this is useful give we use LIKE not EQ
      add_index [:order], name: 'ndx_ver_ord'
      add_index [:pacticipant_id, :order], unique: true, name: 'uq_ver_ppt_ord'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact_broker-2.0.5 db/migrations/34_create_index_on_consumer_version_order.rb
pact_broker-2.0.4 db/migrations/34_create_index_on_consumer_version_order.rb
pact_broker-2.0.3 db/migrations/34_create_index_on_consumer_version_order.rb