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.52.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.52.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.51.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.50.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.50.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.49.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.48.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.47.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.47.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.46.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.45.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.44.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.43.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.42.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.41.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.40.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.39.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.38.1 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.38.0 db/migrations/000038_create_triggered_webhooks_table.rb
pact_broker-2.37.0 db/migrations/000038_create_triggered_webhooks_table.rb