Packages

Asset-first data orchestration framework for Elixir/BEAM.

Current section

Files

Jump to
flowstone priv repo migrations 0012_add_item_batcher_fields.exs
Raw

priv/repo/migrations/0012_add_item_batcher_fields.exs

defmodule FlowStone.Repo.Migrations.AddItemBatcherFields do
use Ecto.Migration
def change do
alter table(:flowstone_scatter_barriers) do
add :batching_enabled, :boolean, default: false
add :batch_count, :integer
add :batch_options, :jsonb
end
alter table(:flowstone_scatter_results) do
add :batch_index, :integer
add :batch_items, {:array, :map}
add :batch_input, :map
end
create index(:flowstone_scatter_results, [:batch_index])
end
end