"""run_node.cached_from Which run a restored node's values came from. A cache hit replays no emissions, so the series stays where it was recorded and the run that reused it points at it rather than copying a few thousand rows per reuse. Revision ID: d1f7a3c8b204 Revises: c9a5d1e73b48 Create Date: 2026-08-25 """ import sqlalchemy as sa import sqlmodel.sql.sqltypes from alembic import op # revision identifiers, used by Alembic. revision = "d1f7a3c8b204" down_revision = "c9a5d1e73b48" branch_labels = None depends_on = None def upgrade(): op.add_column( "run_node", sa.Column( "cached_from", sqlmodel.sql.sqltypes.AutoString(length=64), nullable=False, server_default="", ), ) def downgrade(): op.drop_column("run_node", "cached_from")