Zkt22/assignment1-fruitapp/fruitapp-backend/migrations/versions/fee4d1b1d192_.py

29 lines
652 B
Python
Raw Permalink Normal View History

2022-04-25 09:19:43 +00:00
"""empty message
Revision ID: fee4d1b1d192
Revises: 843c810aec1f
Create Date: 2022-04-08 07:05:04.647143
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'fee4d1b1d192'
down_revision = '843c810aec1f'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('product', sa.Column('likes', sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('product', 'likes')
# ### end Alembic commands ###