Sha256: ed945dd657f29b33b49284d51807acaa82456ef66bddd94b44b969f013f54ba9
Contents?: true
Size: 503 Bytes
Versions: 48
Compression:
Stored size: 503 Bytes
Contents
require "digest/sha1" require_relative "migration_helper" Sequel.migration do change do PactBroker::MigrationHelper.with_mysql do # Needed to make FK pact_version_content_sha match encoding of pact_version_content ID run("ALTER TABLE pacts CONVERT TO CHARACTER SET 'utf8';") end alter_table(:pacts) do add_foreign_key :pact_version_content_sha, :pact_version_contents, type: String, null: true, foreign_key_constraint_name: "fk_pact_version_content" end end end
Version data entries
48 entries across 48 versions & 1 rubygems