1a510f2216c0_add_the__block_users_field.py 595 B

123456789101112131415161718192021222324252627282930
  1. """Add the _block_users field
  2. Revision ID: 1a510f2216c0
  3. Revises: 003fcd9e8860
  4. Create Date: 2019-03-14 12:24:32.139377
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '1a510f2216c0'
  10. down_revision = '003fcd9e8860'
  11. def upgrade():
  12. ''' Add the column _block_users to the table projects.
  13. '''
  14. op.add_column(
  15. 'projects',
  16. sa.Column('_block_users', sa.Text, nullable=True)
  17. )
  18. def downgrade():
  19. ''' Drop the column _block_users from the table projects.
  20. '''
  21. op.drop_column('projects', '_block_users')