Changeset 2775

Show
Ignore:
Timestamp:
07/14/08 22:46:37 (5 months ago)
Author:
bchoate
Message:

Updated POD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-41/lib/MT/Upgrade.pm

    r2732 r2775  
    32293229=back 
    32303230 
     3231=head2 MT::Upgrade->add_step( $function[, %params ] ) 
     3232 
     3233Adds an additional upgrade function to the upgrade pipeline. The 
     3234parameters given will be given to the upgrade function when invoked. 
     3235Note that all values in the C<%params> hash should be simple scalar 
     3236values, as they have to be represented in JSON notation. 
     3237 
     3238=head2 MT::Upgrade->check_schema() 
     3239 
     3240Run during the upgrade process to verify all object types are 
     3241up-to-date. Calls the L<check_type> method which does the work 
     3242for an individual object type. Returns '1' for success, or 
     3243undef for failure. 
     3244 
     3245=head2 MT::Upgrade->check_type($type) 
     3246 
     3247Issues schema checks for the specified C<$type>. If schema differences 
     3248exist, upgrade steps are added to bring the object type up to date. 
     3249 
     3250=head2 MT::Upgrade->core_column_action($action, %params) 
     3251 
     3252Upgrade function to process an object type in a specific 
     3253way. C<$action> may be one of C<add>, C<drop>, C<alter>, C<index>. 
     3254C<%params> should contain a C<type> parameter identifying the object 
     3255type to process. 
     3256 
     3257=head2 MT::Upgrade->core_create_config_table 
     3258 
     3259Upgrade function to handle the creation of the initial 
     3260L<MT::Config> object. 
     3261 
     3262=head2 MT::Upgrade->core_create_template_maps 
     3263 
     3264Upgrade function to handle the creation of L<MT::TemplateMap> records 
     3265for upgrading pre-2.0 MT schemas. 
     3266 
     3267=head2 MT::Upgrade->core_drop_meta_for_table 
     3268 
     3269Upgrade function to handle the removal of "meta" blob columns for 
     3270pre-MT 4.2 schemas. 
     3271 
     3272=head2 MT::Upgrade->core_finish 
     3273 
     3274Upgrade function that finalizes an upgrade operation. This routine 
     3275is always run at the end of the upgrade process. 
     3276 
     3277=head2 MT::Upgrade->core_fix_type 
     3278 
     3279Upgrade function that handles a table "overhaul", where it is necessary 
     3280to create a new temporary table, drop the existing one, then rebuild it 
     3281from scratch. This is necessary when an object driver (SQLite, for instance) 
     3282does not support a kind of table manipulation that is required to upgrade 
     3283it. 
     3284 
     3285=head2 MT::Upgrade->core_populate_author_auth_type 
     3286 
     3287Upgrade function to handle the assignment of the authentication type 
     3288(specifically, the 'auth_type' column) for upgraded L<MT::Author> records. 
     3289 
     3290=head2 MT::Upgrade->core_remove_unique_constraints 
     3291 
     3292Upgrade function that removes some old table constraints for pre-3.2 
     3293MT schemas. 
     3294 
     3295=head2 MT::Upgrade->core_set_enable_archive_paths 
     3296 
     3297Upgrade function that enables the C<EnableArchivePaths> configuration 
     3298setting, if the existing schema version is 3.2 or earlier (preserves 
     3299'archive path', 'archive url' blog settings fields). 
     3300 
    32313301=head1 CALLBACKS 
    32323302