36386a60b3fd_add_milestone_to_issues.py 575 B

1234567891011121314151617181920212223242526272829
  1. """Add milestone to issues
  2. Revision ID: 36386a60b3fd
  3. Revises: 350efb3f6baf
  4. Create Date: 2016-09-14 11:03:45.673932
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '36386a60b3fd'
  8. down_revision = '350efb3f6baf'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ''' Add the column milestone to the table issues.
  13. '''
  14. op.add_column(
  15. 'issues',
  16. sa.Column('milestone', sa.String(255), nullable=True)
  17. )
  18. def downgrade():
  19. ''' Add the column milestone to the table issues.
  20. '''
  21. op.drop_column('issues', 'milestone')