Sha256: 930e837b7bc02f6627014169f41b6dddc452aa5d3acaf132a815a96b98673ce9

Contents?: true

Size: 1.6 KB

Versions: 2

Compression:

Stored size: 1.6 KB

Contents

# frozen_string_literal: true

Sequel.migration do
  up do
    create_table(:dynflow_execution_plans) do
      column :uuid, String, primary_key: true, size: 36, fixed: true
      index :uuid, :unique => true

      column :data, String, text: true

      column :state, String
      column :result, String
      column :started_at, Time
      column :ended_at, Time
      column :real_time, Float
      column :execution_time, Float
    end

    create_table(:dynflow_actions) do
      foreign_key :execution_plan_uuid, :dynflow_execution_plans, type: String, size: 36, fixed: true
      index :execution_plan_uuid
      column :id, Integer
      primary_key [:execution_plan_uuid, :id]
      index [:execution_plan_uuid, :id], :unique => true

      column :data, String, text: true
    end

    create_table(:dynflow_steps) do
      foreign_key :execution_plan_uuid, :dynflow_execution_plans, type: String, size: 36, fixed: true
      index :execution_plan_uuid
      column :id, Integer
      primary_key [:execution_plan_uuid, :id]
      index [:execution_plan_uuid, :id], :unique => true
      column :action_id, Integer
      foreign_key [:execution_plan_uuid, :action_id], :dynflow_actions,
        name: :dynflow_steps_execution_plan_uuid_fkey1
      index [:execution_plan_uuid, :action_id]

      column :data, String, text: true

      column :state, String
      column :started_at, Time
      column :ended_at, Time
      column :real_time, Float
      column :execution_time, Float
    end
  end

  down do
    drop_table(:dynflow_steps)
    drop_table(:dynflow_actions)
    drop_table(:dynflow_execution_plans)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dynflow-1.9.0 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-1.8.3 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb