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
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

webernet - September 24, 2008 - 21:07
Status:active» fixed

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

ubersoft - September 24, 2008 - 21:20

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

Anonymous (not verified) - October 8, 2008 - 21:44
Status:fixed» closed

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

#4

Zach Harkey - October 9, 2008 - 03:39
Title:Upgrading imagefield from Drupal 5x to 6x?» Upgrading imagefield from Drupal 5x to 6x does not work
Status:closed» active

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

webernet - October 18, 2008 - 19:48
Status:active» duplicate

#6

sun - October 22, 2008 - 20:42
Title:Upgrading imagefield from Drupal 5x to 6x does not work» Upgrade 5.x-2.x -> 6.x-3.x: widget_type and widget_active not properly updated
Version:6.x-3.0-alpha2» 6.x-3.x-dev
Category:support request» bug report
Status:duplicate» active

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

webernet - October 22, 2008 - 21:45
Status:active» duplicate

It's not a duplicate?!?

#296195: Imagefield widget upgrades aren't working
#286474: D5 to D6 Update path

 
 

Drupal is a registered trademark of Dries Buytaert.