dash-stack/migrations/versions/24ea14f8cb4e_.py

31 lines
887 B
Python

"""empty message
Revision ID: 24ea14f8cb4e
Revises: 8491b2bf3af9
Create Date: 2016-07-09 23:21:24.446391
"""
# revision identifiers, used by Alembic.
revision = '24ea14f8cb4e'
down_revision = '8491b2bf3af9'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('email', sa.String(length=128), nullable=True))
op.add_column('users', sa.Column('password_hash', sa.String(length=128), 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', 'password_hash')
op.drop_column('users', 'email')
### end Alembic commands ###