I am checking my drupal site with schema module (http://drupal.org/project/schema) and it report one issue about taxonomy_title schema:

column tid - difference on: length
    declared: array('description' => 'TODO: please describe this field!', 'type' => 'int', 'unsigned' => TRUE, 'length' => '11', 'not null' => TRUE, 'default' => 0)
    actual: array('description' => 'TODO: please describe this field!', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0)

Maybe it issue could be important

Members fund testing for the Drupal project. Drupal Association Learn more


jenlampton’s picture

Category: bug » task
Status: Active » Needs review
501 bytes
385 bytes

Thanks for the issue @jordi_bcktt. Based on a similar solution in #938436: Remove 'length' parameter for fields with 'int' type I will remove the length declaration from the schema, but since this is not actually a bug, I don't see a reason to update existing installations. This will clean up the problem for future installations though.

Patches provided for both D7 and D6.

hass’s picture

Status: Needs review » Needs work

Update hook is missing. Not updating all to the same shema can cause unconditional issues. This must be avoided. Creating an update hook is really easy.

jenlampton’s picture

Issue summary: View changes
Status: Needs work » Needs review
875 bytes

Update hook added.

  • jenlampton committed 58cdb32 on 7.x-1.x
    Issue #1835420 by jenlampton: Inconsistent database schema
jenlampton’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.