image_update_5200() created the image table with the the image_size column specified as image_size VARCHAR(32) NOT NULL.
The Drupal 6 schema has an explicit default => ''
Schema module reports this as:
* image
* column image_size - difference on: default
declared: array('description' => t('TODO: please describe this field!'), 'type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => '')
actual: array('description' => t('TODO: please describe this field!'), 'type' => 'varchar', 'length' => '32', 'not null' => TRUE)
A new image_update_61xx() to re-set this attribute would sort this out.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 642052-4.image_.fix-schema-mismatch-default.patch | 659 bytes | joachim |
| #1 | 642052.image_.fix-schema-mismatch-default.patch | 720 bytes | joachim |
Comments
Comment #1
joachim commentedThanks for reporting this and investigating the problem.
Could you test this patch please?
Comment #2
sunIdeally, this should be more explicit:
Fix default value for {image}.image_size, introduced in image_update_5200().
This can be removed.
Can we write this on one line?
This review is powered by Dreditor.
Comment #3
joachim commented> Can we write this on one line?
I'm following the same format as other update functions that call update_sql().
Comment #4
joachim commented#642052 by joachim: Fixed schema mis-match introduced by image_update_5200().
Committed this patch.