368fd931cf7f_add_the_notifications_column_to_projects.py 618 B

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