diff --git a/regcode.install b/regcode.install
index bc944bee4..4a38c197b 100644
--- a/modules/contrib/regcode/regcode.install
+++ b/modules/contrib/regcode/regcode.install
@@ -49,7 +49,7 @@ function regcode_schema() {
       'code' => [
         'description' => 'The registration code',
         'type' => 'varchar',
-        'length' => '255',
+        'length' => '125',
         'not null' => TRUE,
         'default' => '',
       ],
