"""Add results visible

Revision ID: 841eba11c02b
Revises: 
Create Date: 2019-06-03 19:38:47.838717

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "841eba11c02b"
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "poll",
        sa.Column(
            "results_visible", sa.Boolean(), server_default="true", nullable=False
        ),
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("poll", "results_visible")
    # ### end Alembic commands ###
