prepare("UPDATE process_definitions SET definition_json = :json, start_node_id = 'awaiting_call' WHERE code = :code"); $stmt->execute([ ':json' => $json_definition, ':code' => $process_code, ]); echo "Migration 025 executed successfully: Updated 'guest_handling' process definition with structured data and router node."; } // Direct execution guard if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { try { migrate_025(); } catch (Exception $e) { echo "Migration 25 failed: " . $e->getMessage() . "\n"; } }