Show
Ignore:
Timestamp:
03/20/08 03:21:33 (21 months ago)
Author:
fumiakiy
Message:

Changed documentation according to the fixed bug.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/CustomFieldsUpgradeAssistant-bugfix/README

    r568 r572  
    1111Jessee 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 
    1212 
     13---------------------------------------------- 
     14Bug Fix Release 
     15---------------------------------------------- 
     16This version which you downloaded from http://code.sixapart.com/svn/mtplugins/branches/CustomFieldsUpgradeAssistant-bugfix/, is a temporary bugfix release of the plugin.  This version contains a fix to the issue Jesse Gardner and David Phillips found and resolved by running two SQL queries.  The fix is going to be included in the next release of Movable Type Professional, therefore this version will be deprecated by the release. 
     17 
     18This version is in a "branch", because after the new release of Movable Type Professional, this version should not be needed any longer (thus probably be removed). 
    1319 
    1420---------------------------------------------- 
     
    21272. 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. 
    2228 
    23 3. Removing orphans via MySQL. 
    24  
    25 Arvind'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  
    43 4. Fix a bug in Custom Fields 
     293. Fix a bug in Custom Fields - You still have to do this with this version of the plugin. 
    4430 
    4531Open $MTDIR/addons/Commercial.pack/lib/CustomFields/Util.pm 
     
    5541Note: This bug has been fixed and it'll be included in the next Commercial release of MT (most-likely MT4.1.5) 
    5642 
    57 5. Access your MT install, and you will be prompted to upgrade. Click "upgrade" and you're done with the upgrade. 
     434. Access your MT install, and you will be prompted to upgrade. Click "upgrade" and you're done with the upgrade. 
    5844 
    5945 
     
    6753Source 
    6854 
     55For this bugfix version 
     56SVN Repo: http://code.sixapart.com/svn/mtplugins/branches/CustomFieldsUpgradeAssistant-bugfix/ 
     57Trac View: http://code.sixapart.com/trac/mtplugins/log/branches/CustomFieldsUpgradeAssistant-bugfix 
     58 
     59For the mainstream release (although contains bugs as of 2008-03-20) 
    6960SVN Repo: http://code.sixapart.com/svn/mtplugins/trunk/CustomFieldsUpgradeAssistant/ 
    7061Trac View: http://code.sixapart.com/trac/mtplugins/log/trunk/CustomFieldsUpgradeAssistant 
     62 
    7163Plugins: http://plugins.movabletype.org/customfieldsupgradeassistant/ 
    7264 
     
    7466History 
    7567 
     681.0b 
     69- removed the needs to run two DELETE queries in MySQL database by including the fixed version of code in the plugin. 
     70 
    76711.0 
    7772- documented process for upgrading based upon Jesse Gardner's tutorial