"""add the booleans back

Revision ID: 6b137a0fac0a
Revises: becc9e35777d
Create Date: 2021-10-08 11:17:45.680190

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '6b137a0fac0a'
down_revision = 'becc9e35777d'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('contests', sa.Column('ranked_choice', sa.Boolean(), nullable=True))
    op.add_column('contests', sa.Column('primary', sa.Boolean(), nullable=True))
    op.add_column('contests', sa.Column('partisan', sa.Boolean(), nullable=True))
    op.add_column('contests', sa.Column('called', sa.Boolean(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('contests', 'called')
    op.drop_column('contests', 'partisan')
    op.drop_column('contests', 'primary')
    op.drop_column('contests', 'ranked_choice')
    # ### end Alembic commands ###
