3rd-project-7hltbg/alembic/versions/20250414_144046_ebe9468d_update_fruit.py

19 lines
444 B
Python

"""add shape field to fruits table
Revision ID: 1a2b3c4d5e6f
Revises: 0002
Create Date: 2024-01-20 10:00:00.000000
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1a2b3c4d5e6f'
down_revision = '0002'
branch_labels = None
depends_on = None
def upgrade():
op.add_column('fruits', sa.Column('shape', sa.String(), nullable=False))
def downgrade():
op.drop_column('fruits', 'shape')