379ae812db73_add_exercise_column.py 659 B

1234567891011121314151617181920212223242526272829
  1. """add exercise column
  2. Revision ID: 379ae812db73
  3. Revises: d2530e528c53
  4. Create Date: 2020-05-20 11:44:27.814052
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '379ae812db73'
  10. down_revision = 'd2530e528c53'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. # ### commands auto generated by Alembic - please adjust! ###
  15. op.add_column('users', sa.Column('exercise', sa.String(), nullable=True))
  16. # ### end Alembic commands ###
  17. def downgrade():
  18. # ### commands auto generated by Alembic - please adjust! ###
  19. op.drop_column('users', 'exercise')
  20. # ### end Alembic commands ###