<?php
require_once __DIR__ . '/api/config/database.php';
try {
    $db = Database::connect();
    $db->exec("ALTER TABLE users ADD COLUMN hide_reversals TINYINT(1) DEFAULT 1;");
    echo "Column hide_reversals added successfully.";
} catch (Exception $e) {
    if (strpos($e->getMessage(), 'Duplicate column name') !== false) {
        echo "Column already exists.";
    } else {
        echo "Error: " . $e->getMessage();
    }
}
