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

if ($argc < 2) {
    echo "Usage: php set_menu_option_request_documents.php <menu_option_id>\n";
    exit(1);
}
$id = intval($argv[1]);

$db = Database::getInstance();
$opt = $db->fetch("SELECT * FROM menu_options WHERE id = :id", ['id' => $id]);
if (!$opt) {
    echo "Menu option not found: $id\n";
    exit(1);
}

$db->update('menu_options', ['action_type' => 'request_documents'], 'id = :id', ['id' => $id]);

echo "Updated menu_option id=$id to action_type=request_documents\n";