update.inc

Version 1.22 (checked in on 2009/11/10 at 22:06:09 by dries)

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.

Functions

NameDescription
update_batchStart the database update batch process.
update_check_incompatibilityHelper function to test compatibility of a module or theme.
update_do_onePerform one update and store the results which will later be displayed on the finished page.
update_finishedFinish the update process and store results for eventual display.
update_fix_compatibilityDisable anything in the {system} table that is not compatible with the current version of Drupal core.
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_update_listReturn a list of all the pending database updates.
update_parse_db_urlParse database connection URLs (in the old, pre-Drupal 7 format) and return them as an array of database connection information.
update_prepare_d7_bootstrapUsers who still have a Drupal 6 database (and are in the process of updating to Drupal 7) need extra help before a full bootstrap can be achieved. This function does the necessary preliminary work that allows the bootstrap to be successful.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.