Drupal support only this data type
http://drupal.org/node/159605

Schema module report than tables not congruent.

Maybe it could be deleted the size for the int fields saving only 'tiny' for the 'activated' field.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sgabe’s picture

I am sorry but I don't understand what you mean... Could you spell out the problem?

pheudo’s picture

Into the implementation of the hook schema into the simplenews_scheduler.install you used numeric value into the size of integer fields.
Drupal support only "normal, tiny, small, medium, big" attributes. Not the number of byte like 11 or 10.

Than schema module reports simplenews_scheduler tables like not congruent with schema.

Sorry about my lame english. =|

sgabe’s picture

I don't see that problem anywhere, only the activated column has a size field which is set to tiny. Don't you confuse the length with size? They are not the same.

pheudo’s picture

FileSize
24.64 KB

Maybe schema report can help me...

pheudo’s picture

'lenght' indicate the maximal length of a type 'char', 'varchar' or 'text' field. Ignored for other field types.
For the integers u need to use only the size.

sgabe’s picture

Title: Data types in table schema don't support byte numbers in field size. » Remove 'lenght' parameter for fields with 'int' type
Status: Active » Needs review
FileSize
1.86 KB

Okay, I see the problem which is that the 'length' is only used for 'char', 'varchar' or 'text' and ignored for other field types, so it can be removed from fields with 'int' type. See the attached patch.

sgabe’s picture

Title: Remove 'lenght' parameter for fields with 'int' type » Remove 'length' parameter for fields with 'int' type
pheudo’s picture

Status: Needs review » Reviewed & tested by the community

I did it the same into the module and I wanted to update community code too.
Thanks, well done.

sgabe’s picture

Status: Reviewed & tested by the community » Fixed

It's committed and will be in the development snapshot soon. Thank you!

Status: Fixed » Closed (fixed)

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