root/trunk/CustomFieldsUpgradeAssistant/README

Revision 568, 3.2 kB (checked in by bsmith, 21 months ago)

README edit

Line 
1----------------------------------------------
2Custom Fields Upgrade Assistant
3----------------------------------------------
4
5CustomFields Upgrade Assistant lets you upgrade the Custom Fields data and field structure created and maintained by the older versions of Custom Fields plugin (written by Arvind Satyanarayan of www.movalog.com) to the structure suitable to Movable Type 4.1.
6
7The plugin is intended to overwrite your exisiting Custom Fields plugin.  This plugin includes the directory whose name is "Custom Fields", in the directory there is a plugin defition script whose name is "customfields.pl"; both the directory and the file were *not* mistakenly named.
8
9Please make sure you backup the database and the plugin directories and files before upgrading, so if *something* happens, you can go back to the original state.
10
11Jessee Gardner (with help from Six Apart's David Phillips aka TweezerMan) wrote a great CustomFields migration tutorial at: http://www.movabletweak.com/app/migrating_customfields_movable_type.php. The steps are repeated here
12
13
14----------------------------------------------
15Upgrade Process
16
171. Remove existing CustomFields plugin
18
19    $MTDIR/plugins/CustomFields
20
212. Install the CustomFieldsUpgradeAssistant plugin. This upgrade plugin has the same name as the original plugin and should be placed in the same location as the original plugin.
22
233. Removing orphans via MySQL.
24
25Arvind's plugin didn't delete custom field data when the objects it was attached to were deleted. These two MySQL queries will remove that data:
26
27    DELETE FROM mt_plugindata WHERE
28    LEFT( plugindata_key, 6 ) = 'entry_'
29    AND plugindata_plugin = 'CustomFields'
30    AND (SELECT entry_id FROM mt_entry
31    WHERE LEFT( plugindata_key, 6 ) = 'entry_'
32    AND plugindata_plugin = 'CustomFields'
33    AND SUBSTRING( plugindata_key, 7 ) = entry_id) IS NULL;
34   
35    DELETE FROM mt_plugindata WHERE
36    LEFT( plugindata_key, 1 ) = '_'
37    AND plugindata_plugin = 'CustomFields'
38    AND (SELECT author_id FROM mt_author
39    WHERE LEFT( plugindata_key, 1 ) = '_'
40    AND plugindata_plugin = 'CustomFields'
41    AND SUBSTRING( plugindata_key, 2 ) = author_id) IS NULL;
42
434. Fix a bug in Custom Fields
44
45Open $MTDIR/addons/Commercial.pack/lib/CustomFields/Util.pm
46
47Go to line 322, which looks like this:
48   
49    my $text = ($entry->text || '') . "\n" . ($entry->text_more || '');
50   
51And change to:
52   
53    my $text = ($obj->text || '') . "\n" . ($obj->text_more || '');
54
55Note: This bug has been fixed and it'll be included in the next Commercial release of MT (most-likely MT4.1.5)
56
575. Access your MT install, and you will be prompted to upgrade. Click "upgrade" and you're done with the upgrade.
58
59
60----------------------------------------------
61Authors and Contributors
62
63Fumiaki Yoshimatsu, Six Apart Japan (SAKK)
64Beau Smith, Six Apart
65
66----------------------------------------------
67Source
68
69SVN Repo: http://code.sixapart.com/svn/mtplugins/trunk/CustomFieldsUpgradeAssistant/
70Trac View: http://code.sixapart.com/trac/mtplugins/log/trunk/CustomFieldsUpgradeAssistant
71Plugins: http://plugins.movabletype.org/customfieldsupgradeassistant/
72
73----------------------------------------------
74History
75
761.0
77- documented process for upgrading based upon Jesse Gardner's tutorial
78
Note: See TracBrowser for help on using the browser.