Upgrade 5.x-2.x -> 6.x-3.x: widget_type and widget_active not properly updated
ubersoft - September 24, 2008 - 16:46
| Project: | ImageField |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
I publish three webcomics (http://ubersoft.net) that use CCK nodes with Imagefield to publish the actual comics. I have a test site I have set up to try to convert my existing Drupal database (for Drupal 5x) to Drupal 6.
The problem I'm having is that after the conversion process the CCK nodes are stripped of all their custom fields, including the image one.
How do I successfully preserve my imagefield information so that I can keep using my cck nodes, or at the very least, rebuild them with a minimum of effort?

#1
When imagefield has been released for Drupal 6, there will be an upgrade path. Until then, the current alpha releases are incomplete and 'use at your own risk'.
#2
OK, that's cool. I wasn't sure how far along the alpha was so I was trying to plan my eventual upgrade ahead of time. :)
#3
Automatically closed -- issue fixed for two weeks with no activity.
#4
Not sure if it this is a task, bug report, or support request, but the one thing it isn't is 'fixed' yet.
Marking as active so people know that there is no current upgrade path for this module yet.
Also tweaked the title.
#5
#6
This issue is neither fixed, nor duplicate.
Upgrading already works pretty good. Only the columns widget_module and widget_active in content_node_field_instance were not updated properly. After executing the following query and clearing the cache, ImageFields re-appeared:
UPDATE {content_node_field_instance} SET widget_module = 'imagefield', widget_active = 1 WHERE widget_type = 'image';Already tried to grasp what's happening in the update function, but without real success. However, it looks like we can just add those two keys along with hard-coded values, and content_field_instance_update() does the rest for us.
Awesome job, dopry & drewish!
#7
It's not a duplicate?!?
#296195: Imagefield widget upgrades aren't working
#286474: D5 to D6 Update path