Sha256: e07ec211d689bad616bf998b35ceb959902f2574540919a257ca7c63ca6a8e93

Contents?: true

Size: 884 Bytes

Versions: 112

Compression:

Stored size: 884 Bytes

Contents

Sequel.migration do
  change do
    create_table(:triggered_webhooks, charset: 'utf8') do
      primary_key :id
      String :trigger_uuid, null: false
      String :trigger_type, null: false # publication or manual
      foreign_key :pact_publication_id, :pact_publications, null: false
      foreign_key :webhook_id, :webhooks
      String :webhook_uuid, null: false # keep so we can group executions even when webhook is deleted
      foreign_key :consumer_id, :pacticipants, null: false
      foreign_key :provider_id, :pacticipants, null: false
      String :status, null: false
      DateTime :created_at, null: false
      DateTime :updated_at, null: false
      index [:webhook_id, :trigger_uuid], unique: true, name: 'uq_triggered_webhook_wi'
      index [:pact_publication_id, :webhook_id, :trigger_uuid], unique: true, name: 'uq_triggered_webhook_ppi_wi'
    end
  end
end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
pact_broker-2.79.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.79.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.78.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.78.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.77.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.76.2 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.76.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.76.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.75.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.74.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.74.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.73.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.72.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.71.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.70.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.69.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.68.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.68.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.67.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.66.0 db/migrations/000038_create_triggered_webhooks_table.rb