Sha256: 22bc7e1d772d74033a42236d4c413bdc625c7c4c82f4477fda7f66899d09c3b7

Contents?: true

Size: 786 Bytes

Versions: 44

Compression:

Stored size: 786 Bytes

Contents

Sequel.migration do
  up do
    alter_table(:deployed_versions) do
      add_column(:target, String)
      add_column(:target_for_index, String, default: "", null: false)
      set_column_allow_null(:replaced_previous_deployed_version)
      set_column_allow_null(:currently_deployed)
      drop_index [:pacticipant_id, :currently_deployed], name: "deployed_versions_pacticipant_id_currently_deployed_index"
    end
  end

  down do
    alter_table(:deployed_versions) do
      drop_column(:target)
      drop_column(:target_for_index)
      set_column_not_null(:replaced_previous_deployed_version)
      set_column_not_null(:currently_deployed)
      add_index [:pacticipant_id, :currently_deployed], name: "deployed_versions_pacticipant_id_currently_deployed_index"
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
pact_broker-2.112.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.111.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.109.1 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.109.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.108.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.107.1 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.107.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.107.0.beta.1 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.106.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.105.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.104.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.103.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.102.2 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.102.1 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.102.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.101.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.100.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.99.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.98.0 db/migrations/20210415_add_target_column_to_deployed_version.rb
pact_broker-2.97.0 db/migrations/20210415_add_target_column_to_deployed_version.rb