<reponame>parthi-siva/SadguruTeaShop<filename>backend/migrations/versions/6b3501155305_.py
"""empty message

Revision ID: 6b3501155305
Revises: 
Create Date: 2020-06-11 00:50:33.940652

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '6b3501155305'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('inventory_item',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('name', sa.String(length=64), nullable=True),
    sa.Column('price', sa.Integer(), nullable=True),
    sa.Column('description', sa.String(length=140), nullable=True),
    sa.Column('quantity', sa.Integer(), nullable=True),
    sa.Column('filename', sa.String(length=64), nullable=True),
    sa.Column('filetype', sa.String(length=64), nullable=True),
    sa.Column('timestamp', sa.DateTime(), nullable=True),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_index(op.f('ix_inventory_item_name'), 'inventory_item', ['name'], unique=True)
    op.create_index(op.f('ix_inventory_item_timestamp'), 'inventory_item', ['timestamp'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_inventory_item_timestamp'), table_name='inventory_item')
    op.drop_index(op.f('ix_inventory_item_name'), table_name='inventory_item')
    op.drop_table('inventory_item')
    # ### end Alembic commands ###
