Initial commit: SIBU 2.0 MISSION
This commit is contained in:
33
backend/alembic/versions/c9bb64354775_add_business_coords.py
Normal file
33
backend/alembic/versions/c9bb64354775_add_business_coords.py
Normal file
@ -0,0 +1,33 @@
|
||||
"""add_business_coords
|
||||
|
||||
Revision ID: c9bb64354775
|
||||
Revises: 2088667c3a5f
|
||||
Create Date: 2026-01-29 09:34:11.595352
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = 'c9bb64354775'
|
||||
down_revision: Union[str, None] = '2088667c3a5f'
|
||||
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('businesses', sa.Column('latitude', sa.Float(), nullable=True))
|
||||
op.add_column('businesses', sa.Column('longitude', sa.Float(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('businesses', 'longitude')
|
||||
op.drop_column('businesses', 'latitude')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
Reference in New Issue
Block a user