Sha256: 68252bbac60a8c1815d72583f9b927fa7c004b910519bfb6b3c916a11a1c8f19

Contents?: true

Size: 674 Bytes

Versions: 152

Compression:

Stored size: 674 Bytes

Contents

Sequel.migration do
  up do
    # provider_version is DEPRECATED, use provider_version_number
    create_or_replace_view(:all_verifications,
      from(:verifications).select(
        Sequel[:verifications][:id],
        Sequel[:verifications][:number],
        :success,
        :provider_version_id,
        Sequel[:v][:number].as(:provider_version_number),
        Sequel[:v][:order].as(:provider_version_order),
        :build_url,
        :pact_version_id,
        :execution_date,
        Sequel[:verifications][:created_at]
        ).join(:versions, {id: :provider_version_id}, {:table_alias => :v})
    )
  end

  down do
    drop_view(:all_verifications)
  end
end

Version data entries

152 entries across 152 versions & 1 rubygems

Version Path
pact_broker-2.112.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.111.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.109.1 db/migrations/000047_create_all_verifications.rb
pact_broker-2.109.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.108.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.107.1 db/migrations/000047_create_all_verifications.rb
pact_broker-2.107.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.107.0.beta.1 db/migrations/000047_create_all_verifications.rb
pact_broker-2.106.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.105.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.104.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.103.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.102.2 db/migrations/000047_create_all_verifications.rb
pact_broker-2.102.1 db/migrations/000047_create_all_verifications.rb
pact_broker-2.102.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.101.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.100.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.99.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.98.0 db/migrations/000047_create_all_verifications.rb
pact_broker-2.97.0 db/migrations/000047_create_all_verifications.rb