Files
app/backend/fluksio/alembic/versions/2e7ca7d10044_run_declared.py
T
stroblme caa2cff6b1 A run keeps the inputs its flow declared at submit
Run.declared (migration 2e7ca7d10044) snapshots the declarations on submit
and import. The run detail's Inputs panel reads them, and a run from before
falls back to the flow's current declarations.
2026-10-15 10:20:29 +02:00

31 lines
715 B
Python

"""run.declared
The inputs the flow declared when a run was submitted, so its record reads
against that version of the flow and not against whatever the flow declares
now.
Revision ID: 2e7ca7d10044
Revises: 930ffa094aad
Create Date: 2026-10-15
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "2e7ca7d10044"
down_revision = "930ffa094aad"
branch_labels = None
depends_on = None
def upgrade():
# Nullable: a run submitted before this kept no snapshot, and its readers
# fall back to the flow's current declarations.
op.add_column("run", sa.Column("declared", sa.JSON(), nullable=True))
def downgrade():
op.drop_column("run", "declared")