19 lines
452 B
Python
19 lines
452 B
Python
"""add shape field to groceries table
|
|
Revision ID: b8f5d3a9
|
|
Revises: 9a4c2e7d
|
|
Create Date: 2024-01-30 10:45:23.123456
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'b8f5d3a9'
|
|
down_revision = '9a4c2e7d'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
def upgrade():
|
|
op.add_column('groceries', sa.Column('shape', sa.String(), nullable=True))
|
|
|
|
def downgrade():
|
|
op.drop_column('groceries', 'shape') |