"""Add displayed title to Member

Revision ID: 001d2eaf0413
Revises: acf72cf31eea
Create Date: 2020-07-29 00:13:27.775769

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '001d2eaf0413'
down_revision = 'acf72cf31eea'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('member', sa.Column('title_id', sa.Integer(), nullable=True))
    op.create_foreign_key(None, 'member', 'title', ['title_id'], ['id'])
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, 'member', type_='foreignkey')
    op.drop_column('member', 'title_id')
    # ### end Alembic commands ###
