feat: migrate workflow use_cache field to generate_script (#3154)
Co-authored-by: devsy-bot <no-reply@devsy.ai> Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
"""workflow.use_cache -> generate_script
|
||||
|
||||
Revision ID: 944ef972e5a8
|
||||
Revises: a027553be970
|
||||
Create Date: 2025-08-10 15:57:46.353038+00:00
|
||||
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
import sqlalchemy as sa
|
||||
|
||||
from alembic import op
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = "944ef972e5a8"
|
||||
down_revision: Union[str, None] = "a027553be970"
|
||||
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("workflows", sa.Column("generate_script", sa.Boolean(), nullable=False))
|
||||
op.drop_column("workflows", "use_cache")
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column("workflows", sa.Column("use_cache", sa.BOOLEAN(), autoincrement=False, nullable=False))
|
||||
op.drop_column("workflows", "generate_script")
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user