"""add commit-confirmed fields

Revision ID: 90bee359fecc
Revises: 3b5a6e6eb25c
Create Date: 2026-09-15 22:48:49.997788

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '90bee359fecc'
down_revision = '3b5a6e6eb25c'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('config_change_log', schema=None) as batch_op:
        batch_op.add_column(sa.Column('confirm_minutes', sa.Integer(), nullable=True))
        batch_op.add_column(sa.Column('pending_confirmation', sa.Boolean(), nullable=False))
        batch_op.add_column(sa.Column('confirmed_at', sa.DateTime(), nullable=True))

    # ### end Alembic commands ###


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

    # ### end Alembic commands ###
