"""run.origin_commit A flow declared with the Python decorators is stored here as a generated import shim, so the store's own commit names the shim rather than the code it imports. This column carries the other half: the commit of the repository the node function actually lives in. Revision ID: b7c21f4d9e30 Revises: ee1b4b4426a3 Create Date: 2026-08-23 """ import sqlalchemy as sa import sqlmodel.sql.sqltypes from alembic import op # revision identifiers, used by Alembic. revision = "b7c21f4d9e30" down_revision = "ee1b4b4426a3" branch_labels = None depends_on = None def upgrade(): op.add_column( "run", sa.Column( "origin_commit", sqlmodel.sql.sqltypes.AutoString(length=80), nullable=False, server_default="", ), ) def downgrade(): op.drop_column("run", "origin_commit")