'length' parameter is supported by MySQL for 'int' type, and the documentation as well mentions this,
'length': The maximal length of a type 'varchar', 'text' or 'int' field. Ignored for other field types.
But I am receiving this warning even when I changed the 'length' of the field to match with the schema.
column id - difference on: length
declared: array('description' => t('TODO: please describe this field!'), 'type' => 'int', 'unsigned' => TRUE, 'length' => 1, 'not null' => TRUE, 'default' => 0)
actual: array('description' => t('TODO: please describe this field!'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0)
(JFYI: Drupal also ignores 'length' parameter for 'int' type, probably a bug http://drupal.org/node/764026)
Comments
Comment #1
klonossubscribing...
Comment #2
thierry_gd commentedsubscribing
Comment #3
publicmind commentedI don't think its relevant anymore. There was a error in the documentation. Drupal does not support 'length' parameter for type 'int'. It is probably because not all databases support this including PgSQL. I have edited the documentation to reflect this, http://drupal.org/node/146939.
Thanks.