PgFlowDashboard.Migrations.Versions.V03 (PgFlow v0.3.0)

Copy Markdown View Source

PgFlowDashboard migration version 3.

Bounds a run's duration_ms by failed_at so a failed run's displayed duration stops growing. v02 fixed the step-level formula but left the run-level one in runs_with_progress measuring against NOW() — a failed run never gets a completed_at, so its duration climbed forever. See priv/pgflow_dashboard/sql/versions/v03/v03_up.sql for the full rationale.

Summary

Functions

Rolls back this version's migration by executing the down SQL file.

Applies this version's migration by executing the up SQL file.

Functions

down(opts \\ [])

@spec down(keyword()) :: :ok

Rolls back this version's migration by executing the down SQL file.

up(opts \\ [])

@spec up(keyword()) :: :ok

Applies this version's migration by executing the up SQL file.