<?php
require_once __DIR__ . '/../config/config.php';
require_once __DIR__ . '/../src/db.php';

try {
    $pdo = get_db_connection();
    $sql = "ALTER TABLE contracts ADD COLUMN last_notification_sent DATE DEFAULT NULL";
    $pdo->exec($sql);
    echo "Tabela contracts atualizada com last_notification_sent";
} catch (PDOException $e) {
    // If it already exists, just ignore
    echo "Erro (pode já existir): " . $e->getMessage();
}
