Sha256: 8904ba1a454549c04e67688c4fd1845c3a69b61940a49811bfdf584aa5183541

Contents?: true

Size: 646 Bytes

Versions: 2

Compression:

Stored size: 646 Bytes

Contents

# frozen_string_literal: true

Sequel.migration do
  up do
    alter_table(:dynflow_actions) do
      drop_index [:execution_plan_uuid, :id]
    end

    alter_table(:dynflow_execution_plans) do
      drop_index :uuid
    end

    alter_table(:dynflow_steps) do
      drop_index [:execution_plan_uuid, :id]
    end
  end

  down do
    alter_table(:dynflow_actions) do
      add_index [:execution_plan_uuid, :id], :unique => true
    end

    alter_table(:dynflow_execution_plans) do
      add_index :uuid, :unique => true
    end

    alter_table(:dynflow_steps) do
      add_index [:execution_plan_uuid, :id], :unique => 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/020_drop_duplicate_indices.rb
dynflow-1.8.3 lib/dynflow/persistence_adapters/sequel_migrations/020_drop_duplicate_indices.rb