text: """Initial Migration
  
  Revision ID: def2a5330820
  Revises: f249fe3d2858
  Create Date: 2019-03-04 11:08:53.938803
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = 'def2a5330820'
  down_revision = 'f249fe3d2858'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_constraint('comments_user_id_fkey', 'comments', type_='foreignkey')
      op.drop_column('comments', 'user_id')
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.add_column('comments', sa.Column('user_id', sa.INTEGER(), autoincrement=False, nullable=True))
      op.create_foreign_key('comments_user_id_fkey', 'comments', 'users', ['user_id'], ['id'])
      # ### end Alembic commands ###
  