I am upgrading a site from 4.6 to 5.0, by way of 4.7. Along the way I want to move several hundred nodes from Flexinode types to CCK types. I haven't found any easy way to do this, so I wrote this module that works, in a very limited and crude way. Your millage may vary, recommended for advanced user use only, back-up your db before use, etc. Limitations: * Only converts text, url, timestamps, checkboxes, select, email, image and file types * You must build the matching cck type by hand * All fields in the cck type must have identical labels to the flexinode type fields Dependencies URLs are dependent on the "Link" module Emails are dependent on the "Email" module Files are dependent on the "filefield" module Images are dependent on the "imagefield" module Timestamps are dependent on the "Date" module. To convert timestamps, install the Date module, enable the it and DateAPI modules, and set the new CCK type to datestamp (not date). Steps for use (4.7): 1. Backup your database mysqldump -u username -p db_name > before_convert_backup.sql 2. Turn on the flexinode_admin module, and go to admin/content/"Content types". Keep this browser window open as a reference for step 5. 3. Turn off the Flexinode and flexinode_admin modules. 4. Turn on all the CCK modules and the Flexiconvert module. 5. Create a new CCK type for each old type - each field must have the same name as the old field. The safest method is to copy and paste from the open window in step 2. 5. Backup your database with the cck types defined (in case you make a mistake and need to edit them) mysqldump -u username -p db_name > defined_cck_types.sql 6. Run admin/flexiconvert/convert for each node type, choosing the new cck type that matches each flexinode type. Check that all your data was converted correctly. Common errors come from misnamed columns or mis-typed columns. If you have any errors, restore your database and try again. mysqladmin -u username -p drop db_name mysqladmin -u username -p create db_name mysqldump -u username -p db_name < before_convert_backup.sql 7. Good Luck!
Select Git revision
flexiconvert
-
-
- Open in your IDE
- Download source code
Josiah Johnston authored
Name | Last commit | Last update |
---|---|---|
README.txt | ||
flexiconvert.module |