Sha256: 2b01c7676fccd82830c1f0de4c627fe8c8ca94d65f04e28dc2acc3488a3cd577

Contents?: true

Size: 1.29 KB

Versions: 95

Compression:

Stored size: 1.29 KB

Contents

Sequel.migration do
  up do
    # removing this as it has been replaced by materialized_head_matrix
    drop_table(:materialized_latest_matrix)
  end

  down do
    create_table(:materialized_latest_matrix, charset: 'utf8') do
      Integer :consumer_id, null: false
      String :consumer_name, null: false
      Integer :consumer_version_id, null: false
      String :consumer_version_number, null: false
      Integer :consumer_version_order, null: false
      Integer :pact_publication_id, null: false
      Integer :pact_version_id, null: false
      String :pact_version_sha, null: false
      Integer :pact_revision_number, null: false
      DateTime :pact_created_at, null: false
      Integer :provider_id, null: false
      String :provider_name, null: false
      Integer :provider_version_id
      String :provider_version_number
      Integer :provider_version_order
      Integer :verification_id
      Boolean :success
      Integer :verification_number
      DateTime :verification_executed_at
      String :verification_build_url
      index [:consumer_id], name: 'ndx_mlm_consumer_id'
      index [:provider_id], name: 'ndx_mlm_provider_id'
      index [:consumer_version_order], name: 'ndx_mlm_cv_ord'
    end

    from(:materialized_latest_matrix).insert(from(:latest_matrix).select_all)
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
pact_broker-2.36.1 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.36.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.35.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.34.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.33.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.32.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.31.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.30.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.29.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.27.6 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.27.5 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.27.4 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.27.3 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.27.2 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.27.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.26.1 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.26.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.25.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.24.0 db/migrations/20180205_drop_materialized_latest_matrix.rb
pact_broker-2.23.4 db/migrations/20180205_drop_materialized_latest_matrix.rb