"""run.draft A run submitted against the working copy validated the draft and then executed what was published. The row now records which copy was asked for, so the driver reads the same one the submit checked. Revision ID: a8f6f79e40be Revises: e7d3b1a9c624 Create Date: 2026-09-02 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "a8f6f79e40be" down_revision = "e7d3b1a9c624" branch_labels = None depends_on = None def upgrade(): # Not null with a default, so every run recorded before this reads as what # it was: a run of the published flow. op.add_column( "run", sa.Column("draft", sa.Boolean(), nullable=False, server_default=sa.text("0")), ) def downgrade(): op.drop_column("run", "draft")