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.23.3 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.23.2 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.23.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.23.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.22.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.21.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.20.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.19.2 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.19.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.19.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.18.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.17.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.17.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.16.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.16.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.15.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.14.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.13.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.13.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.12.0 db/migrations/000038_create_triggered_webhooks_table.rb