<?php
require_once __DIR__ . '/../includes/functions.php';
startSecureSession();
requireAdmin();

try {
    $db = getDB();
    $db->exec("ALTER TABLE users MODIFY COLUMN avatar MEDIUMTEXT");
    echo "Successfully updated avatar column to MEDIUMTEXT.<br>";
} catch (Exception $e) {
    echo "Error modifying column: " . $e->getMessage() . "<br>";
}
