diff --git a/referralsources.install b/referralsources.install
index f63cdfe..1e5a014 100644
--- a/referralsources.install
+++ b/referralsources.install
@@ -195,4 +195,24 @@ function referralsources_update_6101() {
   db_add_field($ret, 'referralsources', 'grouping', $grouping);
 
   return $ret;
+}
+
+
+// Increase the arbitrary 5-character code limit to 25 characters
+function referralsources_update_6200() {
+  $ret = array();
+
+  db_drop_unique_key($ret, 'referralsources', 'code');
+
+  $spec = array(
+    'type' => 'varchar',
+    'length' => 25,
+    'not null' => TRUE,
+  );
+
+  db_change_field($ret, 'referralsources', 'code', 'code', $spec);
+
+  db_add_unique_key($ret, 'referralsources', 'code', array('code'));
+
+  return $ret;
 }
\ No newline at end of file
