"""add_must_change_password

Revision ID: b023mustchgpwd
Revises: b022osintitems
Create Date: 2026-02-17 23:00:00.000000

Add must_change_password column to users table to force password
change on first login.
"""

from alembic import op

revision = "b023mustchgpwd"
down_revision = "b022osintitems"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.execute("""
        ALTER TABLE users
            ADD COLUMN IF NOT EXISTS must_change_password BOOLEAN DEFAULT true;
    """)


def downgrade() -> None:
    op.execute("""
        ALTER TABLE users
            DROP COLUMN IF EXISTS must_change_password;
    """)
