Sha256: 902cfeee4d556ab1e08a6995e3dc45e3e39d55a079339b2195e94fd5c836634d

Contents?: true

Size: 935 Bytes

Versions: 14

Compression:

Stored size: 935 Bytes

Contents

# frozen_string_literal: true
Sequel.migration do
  up do
    type = database_type
    create_table(:dynflow_output_chunks) do
      primary_key :id

      column_properties = if type.to_s.include?('postgres')
                            {type: :uuid}
                          else
                            {type: String, size: 36, fixed: true, null: false}
                          end
      foreign_key :execution_plan_uuid, :dynflow_execution_plans, **column_properties
      index :execution_plan_uuid

      column :action_id, Integer, null: false
      foreign_key [:execution_plan_uuid, :action_id], :dynflow_actions,
                  name: :dynflow_output_chunks_execution_plan_uuid_fkey1
      index [:execution_plan_uuid, :action_id]

      column :chunk, String, text: true
      column :kind, String
      column :timestamp, Time, null: false
    end
  end

  down do
    drop_table(:dynflow_output_chunks)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dynflow-1.8.2 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.8.1 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.8.0 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.7.0 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.11 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.10 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.8 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.7 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.6 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.5 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.4 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.3 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.2 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb
dynflow-1.6.1 lib/dynflow/persistence_adapters/sequel_migrations/021_create_output_chunks.rb