34 lines
769 B
Python
34 lines
769 B
Python
"""add parking_spots_covered to properties
|
|
|
|
Revision ID: e9f0a1b2c3d4
|
|
Revises: b7c8d9e0f1a2
|
|
Create Date: 2026-04-14 00:00:00.000000
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "e9f0a1b2c3d4"
|
|
down_revision = "b7c8d9e0f1a2"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
with op.batch_alter_table("properties", schema=None) as batch_op:
|
|
batch_op.add_column(
|
|
sa.Column(
|
|
"parking_spots_covered",
|
|
sa.Integer(),
|
|
nullable=False,
|
|
server_default="0",
|
|
)
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
with op.batch_alter_table("properties", schema=None) as batch_op:
|
|
batch_op.drop_column("parking_spots_covered")
|