You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
795 B

  1. """empty message
  2. Revision ID: 655013143dbb
  3. Revises: e7148b675688
  4. Create Date: 2018-11-01 23:41:21.492859
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '655013143dbb'
  10. down_revision = 'e7148b675688'
  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('email', sa.String(length=64), nullable=True))
  16. op.create_index(op.f('ix_users_email'), 'users', ['email'], unique=True)
  17. # ### end Alembic commands ###
  18. def downgrade():
  19. # ### commands auto generated by Alembic - please adjust! ###
  20. op.drop_index(op.f('ix_users_email'), table_name='users')
  21. op.drop_column('users', 'email')
  22. # ### end Alembic commands ###