"""run.needs A run recorded the worker *labels* its nodes asked for, which answered whether anything was attached to run them but nothing about whether that machine was big enough. The size goes beside the labels, so a queued run can tell waiting for a machine from having nowhere to run at all. Revision ID: b3f1a7c50d92 Revises: e5b8c2f4a913 Create Date: 2026-08-27 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "b3f1a7c50d92" down_revision = "e5b8c2f4a913" branch_labels = None depends_on = None def upgrade(): # Nullable: a run submitted before this declared nothing, and null is that # rather than a run that needs nothing in particular. op.add_column("run", sa.Column("needs", sa.JSON(), nullable=True)) def downgrade(): op.drop_column("run", "needs")