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

$db = db();

$new_json_definition = file_get_contents(__DIR__ . '/../../new_definition.json');

$stmt = $db->prepare("UPDATE process_definitions SET definition_json = :json WHERE id = 4");
$stmt->execute(['json' => $new_json_definition]);

echo "Process definition for follow_up (ID: 4) updated successfully.";
