Sha256: 67ee2600c0f478ffb00d7c08a7bbf322edf1a5349910af5ca77c782a108798fc

Contents?: true

Size: 1.51 KB

Versions: 44

Compression:

Stored size: 1.51 KB

Contents

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, Fixnum
      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, Fixnum
      primary_key [:execution_plan_uuid, :id]
      index [:execution_plan_uuid, :id], :unique => true
      column :action_id, Fixnum
      foreign_key [:execution_plan_uuid, :action_id], :dynflow_actions
      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

44 entries across 44 versions & 1 rubygems

Version Path
dynflow-0.8.4 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.8.3 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.8.2 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.8.1 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.8.0 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.9 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.8 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.7 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.6 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.5 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.4 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.3 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.2 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.1 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.7.0 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.6.2 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.6.1 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.6.0 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.5.1 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb
dynflow-0.5.0 lib/dynflow/persistence_adapters/sequel_migrations/001_initial.rb