Sha256: cc0430791caafe04ad541fb316b4e5f3cd88be976ecd8bd6ffffed049f331673

Contents?: true

Size: 639 Bytes

Versions: 15

Compression:

Stored size: 639 Bytes

Contents

require_relative "migration_helper"
include PactBroker::MigrationHelper

Sequel.migration do
  up do
    # Need to do this again because didn't actually set default of allow_dangerous_contract_modification to true
    # when the first migration was run in db/migrations/20210810_set_allow_contract_modification.rb
    for_upgrades_of_existing_installations do
      from(:config).insert_ignore.insert(
        name: "allow_dangerous_contract_modification",
        type: "boolean",
        value: "1",
        created_at: Sequel.datetime_class.now,
        updated_at: Sequel.datetime_class.now
      )
    end
  end

  down do

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pact_broker-2.112.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.111.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.109.1 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.109.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.108.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.107.1 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.107.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.107.0.beta.1 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.106.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.105.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.104.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.103.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.102.2 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.102.1 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb
pact_broker-2.102.0 db/migrations/20220622_default_allow_dangerous_contract_modification_to_false_for_new_installations.rb