ef98dcb838e4_add_reactions_to_request_comments_py.py 642 B

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