fix workflow_runs.code_gen to enforce code generate only for task v2 block run (#3597)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
"""add code_gen column to workflow_runs
|
||||
|
||||
Revision ID: cce87185dbb5
|
||||
Revises: d36daac4941e
|
||||
Create Date: 2025-10-02 22:56:11.649948+00:00
|
||||
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = "cce87185dbb5"
|
||||
down_revision: Union[str, None] = "d36daac4941e"
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column("workflow_runs", sa.Column("code_gen", sa.Boolean(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column("workflow_runs", "code_gen")
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user