5bb80aeb238d_refuse_sessions_before.py 645 B

12345678910111213141516171819202122232425262728293031
  1. """refuse_sessions_before
  2. Revision ID: 5bb80aeb238d
  3. Revises: 7f31a9fad89f
  4. Create Date: 2018-05-03 16:39:34.974914
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = '5bb80aeb238d'
  8. down_revision = '7f31a9fad89f'
  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. 'users',
  16. sa.Column(
  17. 'refuse_sessions_before', sa.DateTime, nullable=True,
  18. server_default=None)
  19. )
  20. def downgrade():
  21. ''' Drop the column _reports from the table projects.
  22. '''
  23. op.drop_column('users', 'refuse_sessions_before')