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

try {
    $pdo = db();
    $sql = "UPDATE `users` SET `is_superadmin` = 1 WHERE `id` = 1";
    $pdo->exec($sql);
    echo "User with ID 1 has been promoted to super admin.\n";
} catch (PDOException $e) {
    die("Failed to promote user: " . $e->getMessage() . "\n");
}

