defmodule GitGud.Repo.Migrations.AddStepLogOffsets do
use Ecto.Migration
# The runner streams one flat log per job (UpdateLog) and reports each
# step's slice as [log_index, log_index + log_length) via StepState.
# Persist those offsets so the run view can show per-step logs instead
# of dumping the whole stream onto the first step.
def change do
alter table(:workflow_steps) do
add :log_index, :integer
add :log_length, :integer
end
end
end
479 B · text
5af55d9