1640c7d75e5f_add_reports_field_to_project.py 579 B

1234567891011121314151617181920212223242526272829
  1. """Add reports field to project
  2. Revision ID: 1640c7d75e5f
  3. Revises: 1d18843a1994
  4. Create Date: 2016-09-09 16:11:28.099423
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '1640c7d75e5f'
  8. down_revision = '1d18843a1994'
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ''' Add the column _reports to the table projects
  13. '''
  14. op.add_column(
  15. 'projects',
  16. sa.Column('_reports', sa.Text, nullable=True)
  17. )
  18. def downgrade():
  19. ''' Drop the column _reports from the table projects.
  20. '''
  21. op.drop_column('projects', '_reports')