update_sql

Related topics

Namesort iconDescription
Database abstraction layerAllow the use of different database servers using the same code base.

Functions that call update_sql()

Namesort iconLocationDescription
book_update_6000modules/book/book.installDrupal 5.x to 6.x update.
comment_update_7001modules/comment/comment.installChange comment status from published being 0 to being 1
db_add_columnupdate.phpAdd a column to a database using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.
db_change_columnupdate.phpChange a column definition using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.
db_change_fieldincludes/database/database.inc
filter_update_7001modules/filter/filter.installBreak out "escape HTML filter" option to its own filter.
locale_update_6000modules/locale/locale.install{locales_meta} table became {languages}.
locale_update_6001modules/locale/locale.installChange locale column to language. The language column is added by update_fix_d6_requirements() in update.php to avoid a large number of error messages from update.php. All we need to do here is copy locale to language and then drop locale.
locale_update_6002modules/locale/locale.installRemove empty translations, we don't need these anymore.
locale_update_6003modules/locale/locale.installPrune strings with no translations (will be automatically re-registered if still in use)
node_update_7000modules/node/node.installFix node type 'module' attribute to avoid name-space conflicts.
statistics_update_1000modules/statistics/statistics.installChanges session ID field to VARCHAR(64) to add support for SHA-1 hashes.
system_update_6000modules/system/system.installRemove auto_increment from {boxes} to allow adding custom blocks with visibility settings.
system_update_6005modules/system/system.installAdd language to url_alias table and modify indexes.
system_update_6006modules/system/system.installDrop useless indices on node_counter table.
system_update_6007modules/system/system.installChange the severity column in the watchdog table to the new values.
system_update_6008modules/system/system.installAdd info files to themes. The info and owner columns are added by update_fix_d6_requirements() in update.php to avoid a large number of error messages from update.php. All we need to do here is copy description to owner and then drop description.
system_update_6009modules/system/system.installThe PHP filter is now a separate module.
system_update_6011modules/system/system.installAdd language support to nodes
system_update_6015modules/system/system.installAdd the form cache table.
system_update_6016modules/system/system.installMake {node}'s primary key be nid, change nid,vid to a unique key. Add primary keys to block, filters, flood, permission, and term_relation.
system_update_6018modules/system/system.installAdd HTML corrector to HTML formats or replace the old module if it was in use.
system_update_6019modules/system/system.installReconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.
system_update_6021modules/system/system.installMigrate the menu items from the old menu system to the new menu_links table.
system_update_6022modules/system/system.installUpdate files tables to associate files to a uid by default instead of a nid. Rename file_revisions to upload since it should only be used by the upload module used by upload to link files to nodes.
system_update_6034modules/system/system.installRename permission "administer access control" to "administer permissions".
system_update_6036modules/system/system.installChange the search schema and indexing.
system_update_6037modules/system/system.installCreate consistent empty region for disabled blocks.
system_update_6038modules/system/system.installEnsure that "Account" is not used as a Profile category.
system_update_6039modules/system/system.installRename permissions "edit foo content" to "edit any foo content". Also update poll module permission "create polls" to "create poll content".
system_update_6041modules/system/system.installChange forum vocabulary not to be required by default and set the weight of the forum.module 1 higher than the taxonomy.module.
system_update_6044modules/system/system.installRC1 to RC2 index cleanup.
system_update_6045modules/system/system.installUpdate blog, book and locale module permissions.
system_update_6047modules/system/system.installFix cache mode for blocks inserted in system_install() in fresh installs of previous RC.
system_update_7000modules/system/system.installRename blog and forum permissions to be consistent with other content types.
system_update_7003modules/system/system.installUpdate {blocked_ips} with valid IP addresses from {access}.
system_update_7004modules/system/system.installRemove hardcoded numeric deltas from all blocks in core.
system_update_7008modules/system/system.installUse the poll_choice primary key to record votes in poll_votes rather than the choice order. Rename chorder to weight.
system_update_7009modules/system/system.installRename the variables for primary and secondary links.
update_fix_compatibilityupdate.phpDisable anything in the {system} table that is not compatible with the current version of Drupal core.
update_sqlincludes/database/database.incPerform an SQL query and return success or failure.

Functions called by update_sql()

Namesort iconLocationDescription
check_plainincludes/bootstrap.incEncode special characters in a plain-text string for display as HTML.
update_sqlincludes/database/database.incPerform an SQL query and return success or failure.
 
 

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.