d692d6e1a31d_user_add_approved.py 474 B

123456789101112131415161718192021222324
  1. """user_add_approved
  2. Revision ID: d692d6e1a31d
  3. Revises: 64c257f78218
  4. Create Date: 2019-03-01 14:04:43.327766
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = 'd692d6e1a31d'
  10. down_revision = '64c257f78218'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. op.add_column('user', sa.Column('approved', sa.Boolean(), server_default='f', nullable=True))
  15. def downgrade():
  16. op.drop_column('user', 'approved')