"""Migration 0025: Add follow_up_at to suppliers + noindex to articles.

follow_up_at: ISO date string (YYYY-MM-DD) for scheduled follow-up reminders.
              NULL = no follow-up scheduled.

noindex: 1 = search engines should not index this article (thin/insufficient data).
         0 = indexable (default).  Set at generation time by NOINDEX_THRESHOLDS.
"""


def up(conn) -> None:
    # Scheduled follow-up date for outreach pipeline suppliers.
    conn.execute("ALTER TABLE suppliers ADD COLUMN follow_up_at TEXT DEFAULT NULL")
    # Prevent indexing of articles with insufficient data.
    conn.execute("ALTER TABLE articles ADD COLUMN noindex INTEGER NOT NULL DEFAULT 0")
