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.
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.
Comment | File | Size | Author |
---|---|---|---|
#6 | simplenews_scheduler.938436_01.patch | 1.86 KB | sgabe |
#4 | schema_compare_report.png | 24.64 KB | pheudo |
Comments
Comment #1
sgabe CreditAttribution: sgabe commentedI am sorry but I don't understand what you mean... Could you spell out the problem?
Comment #2
pheudo CreditAttribution: pheudo commentedInto 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. =|
Comment #3
sgabe CreditAttribution: sgabe commentedI 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.Comment #4
pheudo CreditAttribution: pheudo commentedMaybe schema report can help me...
Comment #5
pheudo CreditAttribution: pheudo commented'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.
Comment #6
sgabe CreditAttribution: sgabe commentedOkay, 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.
Comment #7
sgabe CreditAttribution: sgabe commentedComment #8
pheudo CreditAttribution: pheudo commentedI did it the same into the module and I wanted to update community code too.
Thanks, well done.
Comment #9
sgabe CreditAttribution: sgabe commentedIt's committed and will be in the development snapshot soon. Thank you!