diff --git link/link.install link-dev/link.install
index 7b1b4c7..1f5748b 100644
--- link/link.install
+++ link-dev/link.install
@@ -135,4 +135,36 @@ function link_update_6002() {
   content_associate_fields('link');
   
   return $ret;
-}
\ No newline at end of file
+}
+
+function link_update_6003() {
+  $ret = array();
+  
+  // Build a list of fields that need updating.
+  $update_fields = array();
+  foreach (content_types_install() as $type_name => $fields) {
+    foreach ($fields as $field) {
+      if ($field['type'] == 'link') {
+        // We only process a given field once.
+        $update_fields[$field['field_name']] = $field;
+      }
+    }
+  }
+  
+  // Change the databse schema to allow URLs of 2048 characters maximum.
+  // here expanded to solve the issue 376818
+  foreach ($update_fields as $field) {
+    $db_info = content_database_info($field);
+    foreach ($db_info['columns'] as $column) {
+      if ($column['column'] == $field['field_name'] .'_url') {
+        $column['length'] = 2048;
+        db_change_field($ret, $db_info['table'], $column['column'], $column['column'], $column);
+      }
+    }
+  }
+  
+  // Let CCK re-associate link fields with Link module and activate the fields.
+  content_associate_fields('link');
+  
+  return $ret;
+}
