D5 to D6 Update path
webernet - July 23, 2008 - 22:14
| Project: | ImageField |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Comparing an imagefield created in 6.x with a 5.x update, the following are not being updated properly:
content_node_field_instance -- widget_type, widget_module, widget_active
Even after correcting those fields, images still aren't appearing.

#1
how are they not being updates properly? Do you have an example table you can dump for testing... content_node_field and content_node_instance before and after update?
#2
The following changes are not made (still needed):
content_node_field_instance:
widget_type: "image" --> "imagefield_widget"
widget_module: "" --> "imagefield"
widget_active: "0" --> "1"
content_node_field
db_columns: shouldn't be empty?
#3
#4
Here are the two tables before and after for a (fortunately) very simple site I've just upgraded from Drupal 5.9/Imagefield 5.x-2.1 to Drupal 6.4/Imagefield 6.x-3.0-alpha1.
#5
Here's a workaround that kinda works. Sorry I can't provide a patch, but I'm not at all familiar with how .install files work, and that's where the problem is bound to be.
I'm finding that on old nodes, image thumbnails are not being displayed on the edit form, but this may be an unrelated issue, and I can live with that. New uploaded images are fine.
#6
I had this issue too. Matthew's post #5 did work, although it took a few tries to get right (once, the database column content_type_TYPENAME.field_FIELDNAME_fid got dropped from the database).