e34e799e4182_add_reactions_to_issue_comments.py 603 B

1234567891011121314151617181920212223242526272829
  1. """add_reactions_to_comments
  2. Revision ID: e34e799e4182
  3. Revises: 131ad2dc5bbd
  4. Create Date: 2018-05-17 18:44:32.189208
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = 'e34e799e4182'
  8. down_revision = '131ad2dc5bbd'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ''' Add the _reactions column to table issue_comments.
  13. '''
  14. op.add_column(
  15. 'issue_comments',
  16. sa.Column('_reactions', sa.Text, nullable=True)
  17. )
  18. def downgrade():
  19. ''' Remove the column _reactions from table issue_comments.
  20. '''
  21. op.drop_column('issue_comments', '_reactions')