text: """empty message
  
  Revision ID: 8790d511e2fb
  Revises: 77a6193497ae
  Create Date: 2020-02-06 13:07:28.362417
  
  """
  from alembic import op
  import sqlalchemy as sa
  from sqlalchemy.dialects import mysql
  
  # revision identifiers, used by Alembic.
  revision = '8790d511e2fb'
  down_revision = '77a6193497ae'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('user',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('username', sa.String(length=64), nullable=True),
      sa.Column('email', sa.String(length=64), nullable=True),
      sa.Column('password_hash', sa.String(length=128), nullable=True),
      sa.Column('role', sa.String(length=128), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_user_email'), 'user', ['email'], unique=True)
      op.create_index(op.f('ix_user_username'), 'user', ['username'], unique=True)
      op.drop_table('roles')
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('roles',
      sa.Column('id', mysql.INTEGER(), autoincrement=True, nullable=False),
      sa.Column('name', mysql.VARCHAR(length=64), nullable=True),
      sa.Column('default', mysql.TINYINT(display_width=1), autoincrement=False, nullable=True),
      sa.Column('permissions', mysql.INTEGER(), autoincrement=False, nullable=True),
      sa.CheckConstraint('(`default` in (0,1))', name='roles_chk_1'),
      sa.PrimaryKeyConstraint('id'),
      mysql_collate='utf8mb4_0900_ai_ci',
      mysql_default_charset='utf8mb4',
      mysql_engine='InnoDB'
      )
      op.drop_index(op.f('ix_user_username'), table_name='user')
      op.drop_index(op.f('ix_user_email'), table_name='user')
      op.drop_table('user')
      # ### end Alembic commands ###
  