diff --git a/user_stats.install b/user_stats.install
index b71d120..f6026c0 100644
--- a/user_stats.install
+++ b/user_stats.install
@@ -52,7 +52,7 @@ function user_stats_schema() {
       ),
       'ip_address' => array(
         'type' => 'varchar',
-        'length' => 15,
+        'length' => 40,
         'not null' => TRUE,
         'default' => '',
         'description' => "The user's IP address.",
@@ -225,3 +225,20 @@ function user_stats_update_6101() {
 
   return $ret;
 }
+
+/**
+ * Implementation of hook_update_N().
+ * Expands the width of the field table to 40.
+ */
+function user_stats_update_6102(&$sandbox) {
+  $ip_address = array(
+    'type' => 'varchar',
+    'length' => 40,
+    'not null' => TRUE,
+    'default' => '',
+    'description' => "The user's IP address.",
+  );
+  $ret = array();
+  db_change_field($ret, 'user_stats_ips', 'ip_address', 'ip_address', $ip_address);
+  return $ret;
+}
