"""online orders: lat / lng, where the customer pinned the delivery (plan 6R.G: areas drawn on a map) Revision ID: 0007_order_pin Revises: 0006_order_table_id Create Date: 2026-11-23 23:55:00 """ from alembic import op import sqlalchemy as sa revision = '0007_order_pin' down_revision = '0006_order_table_id' branch_labels = None depends_on = None def upgrade() -> None: with op.batch_alter_table('online_orders', schema=None) as batch_op: batch_op.add_column(sa.Column('lat', sa.Float(), nullable=True)) batch_op.add_column(sa.Column('lng', sa.Float(), nullable=True)) def downgrade() -> None: with op.batch_alter_table('online_orders', schema=None) as batch_op: batch_op.drop_column('lng') batch_op.drop_column('lat')