text: """migrations
  
  Revision ID: 886fbaed5da9
  Revises: 803b60cc7445
  Create Date: 2019-12-04 10:08:02.886881
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '886fbaed5da9'
  down_revision = '803b60cc7445'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('users',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('username', sa.String(length=100), nullable=False),
      sa.Column('email', sa.String(length=150), nullable=False),
      sa.Column('image', sa.String(length=20), nullable=False),
      sa.Column('bio', sa.String(length=255), nullable=True),
      sa.Column('pass_secure', sa.String(length=255), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('blogs',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('title', sa.String(length=110), nullable=False),
      sa.Column('content', sa.Text(), nullable=False),
      sa.Column('user_id', sa.Integer(), nullable=False),
      sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('comments',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('blog_id', sa.Integer(), nullable=False),
      sa.Column('user_id', sa.Integer(), nullable=False),
      sa.Column('content', sa.Text(), nullable=True),
      sa.ForeignKeyConstraint(['blog_id'], ['blogs.id'], ),
      sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('comments')
      op.drop_table('blogs')
      op.drop_table('users')
      # ### end Alembic commands ###
  