"""days_for_notify nullable

Revision ID: 0016
Revises: 0015
Create Date: 2021-12-03 14:01:31.288230+00:00

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '0016'
down_revision = '0015'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('schedule', 'days_for_notify_of_begin',
               existing_type=postgresql.ARRAY(sa.Interval()),
               nullable=True)
    op.alter_column('schedule', 'days_for_notify_of_problems',
               existing_type=postgresql.INTERVAL(),
               nullable=True)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('schedule', 'days_for_notify_of_problems',
               existing_type=postgresql.INTERVAL(),
               nullable=False)
    op.alter_column('schedule', 'days_for_notify_of_begin',
               existing_type=postgresql.ARRAY(sa.INTEGER()),
               nullable=False)
    # ### end Alembic commands ###
