update.inc

Version 1.87 (checked in on 2011/01/03 at 18:03:54 by webchick)

Drupal database update API.

This file contains functions to perform database updates for a Drupal installation. It is included and used extensively by update.php.

Classes

NameDescription
DrupalUpdateException@class Exception class used to throw error if a module update fails.

Constants

NameDescription
REQUIRED_D6_SCHEMA_VERSIONMinimum schema version of Drupal 6 required for upgrade to Drupal 7.

Functions & methods

NameDescription
update_already_performedDetermines if a module update has already been performed.
update_batchStart the database update batch process.
update_build_dependency_graphConstructs a graph which encodes the dependencies between module updates.
update_check_incompatibilityHelper function to test compatibility of a module or theme.
update_do_onePerform one update and store the results for display on finished page.
update_finishedFinish the update process and store results for eventual display.
update_fix_compatibilityDisable any items in the {system} table that are not core compatible.
update_fix_d7_block_deltasA helper function that modules can use to assist with the transformation from numeric block deltas to string block deltas during the 6.x -> 7.x upgrade.
update_fix_d7_install_profileRegister the currently installed profile in the system table.
update_fix_d7_requirementsPerform Drupal 6.x to 7.x updates that are required for update.php to function properly.
update_get_d6_session_nameConstructs a session name compatible with a D6 environment.
update_get_update_function_listReturns an organized list of update functions for a set of modules.
update_get_update_listReturn a list of all the pending database updates.
update_is_missingDetermines if a module update is missing or unavailable.
update_parse_db_urlParse pre-Drupal 7 database connection URLs and return D7 compatible array.
update_prepare_d7_bootstrapPerforms extra steps required to bootstrap when using a Drupal 6 database.
update_resolve_dependenciesResolves dependencies in a set of module updates, and orders them correctly.
update_retrieve_dependenciesInvoke hook_update_dependencies() in all installed modules.