content: """Add status reason [83ef3cb746a5].
  
  Revision ID: 83ef3cb746a5
  Revises: aae4eed923b5
  Create Date: 2025-09-04 15:41:30.829628
  
  """
  
  import sqlalchemy as sa
  import sqlmodel
  from alembic import op
  
  # revision identifiers, used by Alembic.
  revision = "83ef3cb746a5"
  down_revision = "aae4eed923b5"
  branch_labels = None
  depends_on = None
  
  
  def upgrade() -> None:
      """Upgrade database schema and/or data, creating a new revision."""
      # ### commands auto generated by Alembic - please adjust! ###
      with op.batch_alter_table("pipeline_run", schema=None) as batch_op:
          batch_op.add_column(
              sa.Column(
                  "status_reason",
                  sqlmodel.sql.sqltypes.AutoString(),
                  nullable=True,
              )
          )
  
      # ### end Alembic commands ###
  
  
  def downgrade() -> None:
      """Downgrade database schema and/or data back to the previous revision."""
      # ### commands auto generated by Alembic - please adjust! ###
      with op.batch_alter_table("pipeline_run", schema=None) as batch_op:
          batch_op.drop_column("status_reason")
  
      # ### end Alembic commands ###
  