Browse Source

[up] captcha 7.x-1.5

opi 7 years ago
parent
commit
d9afcecc80

+ 3 - 3
sites/all/modules/captcha/captcha.info

@@ -10,9 +10,9 @@ files[] = captcha.admin.inc
 files[] = captcha.install
 files[] = captcha.test
 
-; Information added by Drupal.org packaging script on 2017-02-15
-version = "7.x-1.4"
+; Information added by Drupal.org packaging script on 2017-09-06
+version = "7.x-1.5"
 core = "7.x"
 project = "captcha"
-datestamp = "1487198287"
+datestamp = "1504724060"
 

+ 16 - 1
sites/all/modules/captcha/captcha.install

@@ -69,7 +69,7 @@ function captcha_schema() {
       'sid' => array(
         'description' => "Session ID of the user.",
         'type' => 'varchar',
-        'length' => 64,
+        'length' => 128,
         'not null' => TRUE,
         'default' => '',
       ),
@@ -326,3 +326,18 @@ function captcha_update_7000() {
       ->execute();
   }
 }
+
+/**
+ * Increase the Session Id field size.
+ */
+function captcha_update_7001() {
+  $schema = captcha_schema();
+
+  db_change_field('captcha_sessions', 'sid', 'sid', array(
+    'description' => "Session ID of the user.",
+    'type' => 'varchar',
+    'length' => 128,
+    'not null' => TRUE,
+    'default' => '',
+  ));
+}

+ 3 - 3
sites/all/modules/captcha/image_captcha/image_captcha.info

@@ -11,9 +11,9 @@ files[] = image_captcha.admin.inc
 files[] = image_captcha.user.inc
 files[] = image_captcha.test
 
-; Information added by Drupal.org packaging script on 2017-02-15
-version = "7.x-1.4"
+; Information added by Drupal.org packaging script on 2017-09-06
+version = "7.x-1.5"
 core = "7.x"
 project = "captcha"
-datestamp = "1487198287"
+datestamp = "1504724060"