Sha256: 1292ede4a71730bc9fcf3f067f17121acb8933f3c24dafd192913fd608b114bd

Contents?: true

Size: 602 Bytes

Versions: 2

Compression:

Stored size: 602 Bytes

Contents

# frozen_string_literal: true

Sequel.migration do
  change do
    create_table(:dynflow_envelopes) do
      primary_key :id
      # we don't add a foreign key to worlds here as there might be an envelope created for the world
      # while the world gets terminated, and it would mess the whole thing up:
      # error on the world deletion because some envelopes arrived in the meantime
      # we still do our best to remove the envelopes if we can
      column :receiver_id, String, size: 36, fixed: true
      index       :receiver_id
      column      :data, String, text: true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dynflow-1.9.0 lib/dynflow/persistence_adapters/sequel_migrations/005_envelopes.rb
dynflow-1.8.3 lib/dynflow/persistence_adapters/sequel_migrations/005_envelopes.rb