<?php
require_once __DIR__ . '/../config/config_enhanced.php';
require_once __DIR__ . '/../classes/Database.php';
try {
    $db = Database::getInstance();
    $db->query("ALTER TABLE conversations MODIFY COLUMN status ENUM('sent','delivered','read','failed','received') DEFAULT 'sent'");
    echo "ALTER OK\n";
} catch (Exception $e) {
    echo "ALTER ERROR: " . $e->getMessage() . "\n";
}
