Now that cck_taxonomy is abandoned, I would like to upgrade to content_taxonomy.

Is there a script/HOWTO document how to go about doing it on existing fields? Would I really have to remove all cck_taxonomy fields and recreate them as content_taxonomy?

Thanks!

Comments

mh86’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

I was thinking about an update script from CCK Taxonomy to Content Taxonomy Drupal-6, in case no one is going to port the CCK Taxonomy.
It shouldn't be all too difficult to port the basic data, of course some field settings would have to be applied manually.
I would appreciate any help in this case very much :)

gauravkumar87’s picture

Any update on this??

msimanga’s picture

This is how I managed to do this, off course back up your site and I would be interested in further tests of this method.

In your D5 installation:
1. In your cck_taxonomy field definition options make sure you have selected to store the field values in both the taxonomy table and the cck table.

2. Create the corresponding field of type content_taxonomy and also select to store the values in both tables.

3. Run SQL statement to update the content_taxonomy field with values from the cck_taxonomy field, something like:

UPDATE
my_content_type
SET my_field_content_taxonomy_value = my_field_cck_taxonomy_tid

4. Delete the cck_taxonomy fields

You should then up able to upgrade you site to D6. I must reiterate, I did this one one site and so far it seems to have worked.

magnus’s picture

Status: Active » Closed (fixed)

Please reopen issue if problem still exists.