<?php
try {
    $pdo = new PDO('mysql:host=127.0.0.1;port=3306;dbname=farm_manager', 'root', '');
    $pdo->exec("ALTER TABLE users MODIFY role ENUM('super_admin','admin','user') NOT NULL DEFAULT 'user'");
    echo "ENUM updated successfully.\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
