|
|
- """empty message
-
- Revision ID: 655013143dbb
- Revises: e7148b675688
- Create Date: 2018-11-01 23:41:21.492859
-
- """
- from alembic import op
- import sqlalchemy as sa
-
-
- # revision identifiers, used by Alembic.
- revision = '655013143dbb'
- down_revision = 'e7148b675688'
- branch_labels = None
- depends_on = None
-
-
- def upgrade():
- # ### commands auto generated by Alembic - please adjust! ###
- op.add_column('users', sa.Column('email', sa.String(length=64), nullable=True))
- op.create_index(op.f('ix_users_email'), 'users', ['email'], unique=True)
- # ### end Alembic commands ###
-
-
- def downgrade():
- # ### commands auto generated by Alembic - please adjust! ###
- op.drop_index(op.f('ix_users_email'), table_name='users')
- op.drop_column('users', 'email')
- # ### end Alembic commands ###
|