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