26 lines
610 B
Python
26 lines
610 B
Python
"""Make order pose_id optional for MVP.
|
|
|
|
Revision ID: 20260328_0004
|
|
Revises: 20260328_0003
|
|
Create Date: 2026-03-28 11:08:00.000000
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
revision = "20260328_0004"
|
|
down_revision = "20260328_0003"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
with op.batch_alter_table("orders") as batch_op:
|
|
batch_op.alter_column("pose_id", existing_type=sa.Integer(), nullable=True)
|
|
|
|
|
|
def downgrade() -> None:
|
|
with op.batch_alter_table("orders") as batch_op:
|
|
batch_op.alter_column("pose_id", existing_type=sa.Integer(), nullable=False)
|