2fb229dac744_store_the_milestone_keys.py 608 B

1234567891011121314151617181920212223242526272829
  1. """Store the milestone keys
  2. Revision ID: 2fb229dac744
  3. Revises: e4dbfcd20f42
  4. Create Date: 2017-10-31 13:03:10.767348
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '2fb229dac744'
  8. down_revision = 'e4dbfcd20f42'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ''' Add the column _milestones_keys to the table projects.
  13. '''
  14. op.add_column(
  15. 'projects',
  16. sa.Column('_milestones_keys', sa.Text, nullable=True)
  17. )
  18. def downgrade():
  19. ''' Drop the column _milestones_keys from the table projects.
  20. '''
  21. op.drop_column('projects', '_milestones_keys')