"""User info addings

Revision ID: 2d1d9bda4150
Revises: efe745b4cf61
Create Date: 2020-07-20 23:54:45.465520

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '2d1d9bda4150'
down_revision = 'efe745b4cf61'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('user', schema=None) as batch_op:
        batch_op.add_column(sa.Column('avatar_src', sa.String(length=120), nullable=True))
        batch_op.add_column(sa.Column('money', sa.Integer(), nullable=True))
        batch_op.add_column(sa.Column('rating', sa.Integer(), nullable=True))

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('user', schema=None) as batch_op:
        batch_op.drop_column('rating')
        batch_op.drop_column('money')
        batch_op.drop_column('avatar_src')

    # ### end Alembic commands ###
