Sha256: c3a4359f6f53f775d4703dabd3137d4dc81621bc7d21e83e714866c593e3a3c0

Contents?: true

Size: 514 Bytes

Versions: 176

Compression:

Stored size: 514 Bytes

Contents

Sequel.migration do
  up do
    run("insert into pact_versions (sha, content, created_at) select sha, content, created_at from pact_version_contents")
    run("update pact_versions set consumer_id = (select consumer_id from all_pacts where pact_version_content_sha = pact_versions.sha limit 1)")
    run("update pact_versions set provider_id = (select provider_id from all_pacts where pact_version_content_sha = pact_versions.sha limit 1)")
    run("delete from pact_versions where consumer_id is null")
  end
end

Version data entries

176 entries across 176 versions & 1 rubygems

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