Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The captcha_points table schema definition does not explicitly state a default value for the form_id column, and schema.module reports that as a schema mis-match:
* captcha_points
* column form_id - difference on: default
declared: array('description' => t('TODO: please describe this field!'), 'type' => 'varchar', 'length' => 128, 'not null' => TRUE)
actual: array('description' => t('TODO: please describe this field!'), 'type' => 'varchar', 'length' => '128', 'not null' => TRUE, 'default' => '')
Comment | File | Size | Author |
---|---|---|---|
#1 | captcha-1049482.patch | 600 bytes | jweowu |
Comments
Comment #1
jweowu CreditAttribution: jweowu commentedSchema module: http://drupal.org/project/schema
Comment #2
soxofaan CreditAttribution: soxofaan commentedcommitted:
http://drupal.org/cvs?commit=494232
http://drupal.org/cvs?commit=494234
thanks
Comment #3
soxofaan CreditAttribution: soxofaan commentedOk, this is confusing:
now I have another user complaining that the "fix" from #2 is actually a bug: #1056078: no default for colum used as primary key
@jweowu: what version of the schema module are you running? And what database (MySQL/Postrgress)?
I just tried with 6.x-1.7 (MySQL db) and it indeed indicates that #2 introduces a mismatch for me.
Comment #4
jweowu CreditAttribution: jweowu commentedMySQL 5.1 on Windows
captcha 6.x-2.3
schema 6.x-1.7
However... We upgraded this site from Drupal 5, so I would hazard a guess that this may actually an issue with the upgrade path not quite converting the Drupal 5 version of the table to what the Drupal 6 schema describes?
Here's the CREATE TABLE statement MySQL generates for the Drupal 5 version of the database:
captcha.install for Drupal 5 says:
Maybe it's some MySQL weirdness that's changed between versions of the database? Having a default value for a primary key column certainly sounds strange.
Comment #5
2xe CreditAttribution: 2xe commentedMySQL changed with version 5.02, see http://bugs.mysql.com/bug.php?id=14947
Comment #6
dpatte CreditAttribution: dpatte commentedI recently installed latest released version of Captcha 2.4 from 2.3. When I started update it reported a schema error, and after continuing with the update it now reports the same schema error as reported on Feb 3rd.
I have been using MySql 5.1.47 for a while.
Comment #7
JoshOrndorff CreditAttribution: JoshOrndorff commentedI know this is a super old post, but I just noticed I have the same issue.
Captcha 7.x-1.0
Schema 7.x-1.0-rc1
MySQL 5.5.34-log on CentOS
For full disclosure, my site was upgraded from drupal 6, but neither Captcha nor Schema were installed until after the upgrade. The exact complaint I get from Schema is:
Also, should we actually describe this field? ;-)
Thanks a lot,
-Josh
Comment #8
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #9
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commented