"""add next_call_date, drop call next_action fields

Revision ID: f0538148ef6e
Revises: f06c267cc12f
Create Date: 2026-08-10 12:25:39.328103

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'f0538148ef6e'
down_revision = 'f06c267cc12f'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('calls', schema=None) as batch_op:
        batch_op.drop_column('next_action_date')
        batch_op.drop_column('next_action')

    with op.batch_alter_table('customers', schema=None) as batch_op:
        batch_op.add_column(sa.Column('next_call_date', sa.Date(), nullable=True))

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('customers', schema=None) as batch_op:
        batch_op.drop_column('next_call_date')

    with op.batch_alter_table('calls', schema=None) as batch_op:
        batch_op.add_column(sa.Column('next_action', sa.VARCHAR(length=30), nullable=True))
        batch_op.add_column(sa.Column('next_action_date', sa.DATE(), nullable=True))

    # ### end Alembic commands ###
