157 functions implement hook_update_N()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

announcements_feed_post_update_migrate_last_fetch_state_to_keyvalue in core/modules/announcements_feed/announcements_feed.post_update.php
Migrates last fetch timestamp from State API to key/value storage.
a_module_update_dependencies in core/tests/fixtures/test_update_ordering/test_update_ordering.php
Implements hook_update_dependencies().
big_pipe_removed_post_updates in core/modules/big_pipe/big_pipe.post_update.php
Implements hook_removed_post_updates().
block_content_removed_post_updates in core/modules/block_content/block_content.post_update.php
Implements hook_removed_post_updates().
block_content_update_last_removed in core/modules/block_content/block_content.install
Implements hook_update_last_removed().
block_removed_post_updates in core/modules/block/block.post_update.php
Implements hook_removed_post_updates().
block_update_last_removed in core/modules/block/block.install
Implements hook_update_last_removed().
ckeditor5_removed_post_updates in core/modules/ckeditor5/ckeditor5.post_update.php
Implements hook_removed_post_updates().
comment_removed_post_updates in core/modules/comment/comment.post_update.php
Implements hook_removed_post_updates().
comment_update_last_removed in core/modules/comment/comment.install
Implements hook_update_last_removed().
contact_removed_post_updates in core/modules/contact/contact.post_update.php
Implements hook_removed_post_updates().
content_moderation_removed_post_updates in core/modules/content_moderation/content_moderation.post_update.php
Implements hook_removed_post_updates().
content_moderation_update_last_removed in core/modules/content_moderation/content_moderation.install
Implements hook_update_last_removed().
content_translation_update_last_removed in core/modules/content_translation/content_translation.install
Implements hook_update_last_removed().
contextual_removed_post_updates in core/modules/contextual/contextual.post_update.php
Implements hook_removed_post_updates().
datetime_range_removed_post_updates in core/modules/datetime_range/datetime_range.post_update.php
Implements hook_removed_post_updates().
dblog_removed_post_updates in core/modules/dblog/dblog.post_update.php
Implements hook_removed_post_updates().
dblog_update_last_removed in core/modules/dblog/dblog.install
Implements hook_update_last_removed().
downgrade_prevention_test_update_12001 in core/modules/system/tests/modules/downgrade_prevention_test/downgrade_prevention_test.install
A hook_update_N that is equivalent update to 11102.
drupal_load_updates in core/includes/install.inc
Loads .install files for installed modules to initialize the update system.
editor_removed_post_updates in core/modules/editor/editor.post_update.php
Implements hook_removed_post_updates().
editor_update_last_removed in core/modules/editor/editor.install
Implements hook_update_last_removed().
entity_test_update_8001 in core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8001.inc
Makes the 'user_id' field multiple and migrate its data.
entity_test_update_8001 in core/modules/system/tests/modules/entity_test/update/status_report_8001.inc
Test update.
entity_test_update_8002 in core/modules/system/tests/modules/entity_test/update/status_report_8002.inc
Test update.
entity_test_update_8002 in core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8002.inc
Makes the 'user_id' field single and migrate its data.
field_post_update_clear_purge_batch_size in core/modules/field/field.post_update.php
Removes the purge_batch_size config.
field_removed_post_updates in core/modules/field/field.post_update.php
Implements hook_removed_post_updates().
field_update_last_removed in core/modules/field/field.install
Implements hook_update_last_removed().
file_removed_post_updates in core/modules/file/file.post_update.php
Implements hook_removed_post_updates().
file_update_last_removed in core/modules/file/file.install
Implements hook_update_last_removed().
filter_removed_post_updates in core/modules/filter/filter.post_update.php
Implements hook_removed_post_updates().
help_post_update_search_help_dependencies in core/modules/help/help.post_update.php
Update config entity dependencies to the Search Help module, if necessary.
help_removed_post_updates in core/modules/help/help.post_update.php
Implements hook_removed_post_updates().
help_update_last_removed in core/modules/help/help.install
Implements hook_update_last_removed().
image_removed_post_updates in core/modules/image/image.post_update.php
Implements hook_removed_post_updates().
image_update_last_removed in core/modules/image/image.install
Implements hook_update_last_removed().
jsonapi_update_last_removed in core/modules/jsonapi/jsonapi.install
Implements hook_update_last_removed().
language_removed_post_updates in core/modules/language/language.post_update.php
Implements hook_removed_post_updates().
language_update_last_removed in core/modules/language/language.install
Implements hook_update_last_removed().
layout_builder_removed_post_updates in core/modules/layout_builder/layout_builder.post_update.php
Implements hook_removed_post_updates().
layout_builder_update_12001 in core/modules/layout_builder/layout_builder.install
Uninstall the layout_builder_expose_all_field_blocks module.
layout_builder_update_last_removed in core/modules/layout_builder/layout_builder.install
Implements hook_update_last_removed().
layout_discovery_removed_post_updates in core/modules/layout_discovery/layout_discovery.post_update.php
Implements hook_removed_post_updates().
locale_config_batch_update_components in core/modules/locale/locale.bulk.inc
Builds a locale batch to refresh configuration.
locale_config_batch_update_config_translations in core/modules/locale/locale.bulk.inc
Implements callback_batch_operation().
locale_config_batch_update_default_config_langcodes in core/modules/locale/locale.bulk.inc
Implements callback_batch_operation().
locale_post_update_clear_translation_path_config in core/modules/locale/locale.post_update.php
Removes the translation.path config.
locale_removed_post_updates in core/modules/locale/locale.post_update.php
Implements hook_removed_post_updates().
locale_translation_batch_update_build in core/modules/locale/locale.fetch.inc
Builds a batch to check, download and import project translations.
locale_translation_update_file_history in core/modules/locale/locale.module
Updates the {locale_file} table.
locale_update_11401 in core/modules/locale/locale.install
Add a hash column to the {locale_file} table.
locale_update_last_removed in core/modules/locale/locale.install
Implements hook_update_last_removed().
media_library_removed_post_updates in core/modules/media_library/media_library.post_update.php
Implements hook_removed_post_updates().
media_library_update_last_removed in core/modules/media_library/media_library.install
Implements hook_update_last_removed().
media_removed_post_updates in core/modules/media/media.post_update.php
Implements hook_removed_post_updates().
media_update_last_removed in core/modules/media/media.install
Implements hook_update_last_removed().
menu_link_content_removed_post_updates in core/modules/menu_link_content/menu_link_content.post_update.php
Implements hook_removed_post_updates().
menu_link_content_update_last_removed in core/modules/menu_link_content/menu_link_content.install
Implements hook_update_last_removed().
migrate_drupal_post_update_migrate_drupal_uninstall in core/modules/migrate_drupal/migrate_drupal.post_update.php
Uninstall Migrate Drupal if installed.
migrate_drupal_ui_post_update_migrate_drupal_ui_uninstall in core/modules/migrate_drupal_ui/migrate_drupal_ui.post_update.php
Uninstall Migrate Drupal UI if installed.
migrate_drupal_update_last_removed in core/modules/migrate_drupal/migrate_drupal.install
Implements hook_update_last_removed().
migrate_removed_post_updates in core/modules/migrate/migrate.post_update.php
Implements hook_removed_post_updates().
migrate_update_last_removed in core/modules/migrate/migrate.install
Implements hook_update_last_removed().
module_test_post_update_test in core/modules/system/tests/modules/module_test/module_test.post_update.php
Test post update function.
module_update_requirements_requirements in core/modules/system/tests/modules/module_update_requirements/module_update_requirements.install
Implements hook_requirements()
navigation_removed_post_updates in core/modules/navigation/navigation.post_update.php
Implements hook_removed_post_updates().
navigation_update_last_removed in core/modules/navigation/navigation.install
Implements hook_update_last_removed().
new_dependency_test_update_8001 in core/modules/system/tests/modules/new_dependency_test/new_dependency_test.install
Enable the new_dependency_test_with_service module.
node_removed_post_updates in core/modules/node/node.post_update.php
Implements hook_removed_post_updates().
node_update_last_removed in core/modules/node/node.install
Implements hook_update_last_removed().
olivero_post_update_remove_shortcut_settings_if_not_installed in core/themes/olivero/olivero.post_update.php
Remove shortcut settings if shortcut module is not installed.
olivero_removed_post_updates in core/themes/olivero/olivero.post_update.php
Implements hook_removed_post_updates().
package_manager_post_update_test in core/modules/package_manager/tests/fixtures/post_update.php
Here is a fake post-update hook.
package_manager_update_2147483647 in core/modules/package_manager/tests/fixtures/db_update.php
Here is a fake update hook.
path_alias_removed_post_updates in core/modules/path_alias/path_alias.post_update.php
Implements hook_removed_post_updates().
path_removed_post_updates in core/modules/path/path.post_update.php
Implements hook_removed_post_updates().
path_update_last_removed in core/modules/path/path.install
Implements hook_update_last_removed().
pgsql_update_last_removed in core/modules/pgsql/pgsql.install
Implements hook_update_last_removed().
post_update_test_failing_post_update_exception in core/modules/system/tests/modules/post_update_test_failing/post_update_test_failing.post_update.php
Post update that throws an exception.
responsive_image_removed_post_updates in core/modules/responsive_image/responsive_image.post_update.php
Implements hook_removed_post_updates().
rest_removed_post_updates in core/modules/rest/rest.post_update.php
Implements hook_removed_post_updates().
rest_update_last_removed in core/modules/rest/rest.install
Implements hook_update_last_removed().
search_removed_post_updates in core/modules/search/search.post_update.php
Implements hook_removed_post_updates().
search_update_11400 in core/modules/search/search.install
Install Search Node and Search and Node are installed.
serialization_removed_post_updates in core/modules/serialization/serialization.post_update.php
Implements hook_removed_post_updates().
serialization_update_last_removed in core/modules/serialization/serialization.install
Implements hook_update_last_removed().
syslog_update_last_removed in core/modules/syslog/syslog.install
Implements hook_update_last_removed().
system_post_update_migrate_compress_setting in core/modules/system/system.post_update.php
Migrate to new compress setting.
system_post_update_remove_non_admin_routes_state in core/modules/system/system.post_update.php
Remove non-admin routes state key.
system_removed_post_updates in core/modules/system/system.post_update.php
Implements hook_removed_post_updates().
system_update_11400 in core/modules/system/system.install
Install Help Search module if the Search and Help modules are installed.
system_update_12000 in core/modules/system/system.install
Remove the deprecated sequences table.
system_update_12001 in core/modules/system/system.install
Equivalent update to 11102.
system_update_last_removed in core/modules/system/system.install
Implements hook_update_last_removed().
taxonomy_removed_post_updates in core/modules/taxonomy/taxonomy.post_update.php
Implements hook_removed_post_updates().
taxonomy_update_last_removed in core/modules/taxonomy/taxonomy.install
Implements hook_update_last_removed().
test_theme_updates_post_update_test in core/modules/system/tests/themes/test_theme_updates/test_theme_updates.post_update.php
Tests post updates for themes.
text_removed_post_updates in core/modules/text/text.post_update.php
Implements hook_removed_post_updates().
under_test_update_1 in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
Simulates a hook_update_N function.
under_test_update_1234_failed in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
Simulates a hook_update_N function.
under_test_update_20 in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
Simulates a hook_update_N function.
under_test_update_3000 in core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php
Simulates a hook_update_N function.
update_calculate_project_update_status in core/modules/update/update.compare.inc
Calculates the current update status of a specific project.
update_get_update_function_list in core/includes/update.inc
Returns an organized list of update functions for a set of modules.
update_get_update_list in core/includes/update.inc
Returns a list of all the pending database updates.
update_post_update_clear_disk_cache_again in core/modules/update/update.post_update.php
Removes the legacy 'Update Manager' disk cache (again).
update_remove_post_updates in core/modules/update/update.post_update.php
Implements hook_removed_post_updates().
update_script_test_update_7200 in core/modules/system/tests/modules/update_script_test/update_script_test.install
Dummy update_script_test update 7200.
update_script_test_update_7201 in core/modules/system/tests/modules/update_script_test/update_script_test.install
Dummy update_script_test update 7201.
update_script_test_update_8001 in core/modules/system/tests/modules/update_script_test/update_script_test.install
Dummy update function to run during the tests.
update_script_test_update_last_removed in core/modules/system/tests/modules/update_script_test/update_script_test.install
Implements hook_update_last_removed().
update_test_0_update_8001 in core/modules/system/tests/modules/update_test_0/update_test_0.install
Dummy update_test_0 update 8001.
update_test_0_update_8002 in core/modules/system/tests/modules/update_test_0/update_test_0.install
Dummy update_test_0 update 8002.
update_test_0_update_8003 in core/modules/system/tests/modules/update_test_0/update_test_0.install
Dummy update_test_0 update 8003.
update_test_1_update_8001 in core/modules/system/tests/modules/update_test_1/update_test_1.install
Dummy update_test_1 update 8001.
update_test_1_update_8002 in core/modules/system/tests/modules/update_test_1/update_test_1.install
Dummy update_test_1 update 8002.
update_test_1_update_8003 in core/modules/system/tests/modules/update_test_1/update_test_1.install
Dummy update_test_1 update 8003.
update_test_1_update_dependencies in core/modules/system/tests/modules/update_test_1/update_test_1.install
Implements hook_update_dependencies().
update_test_2_update_8001 in core/modules/system/tests/modules/update_test_2/update_test_2.install
Dummy update_test_2 update 8001.
update_test_2_update_8002 in core/modules/system/tests/modules/update_test_2/update_test_2.install
Dummy update_test_2 update 8002.
update_test_2_update_8003 in core/modules/system/tests/modules/update_test_2/update_test_2.install
Dummy update_test_2 update 8003.
update_test_2_update_dependencies in core/modules/system/tests/modules/update_test_2/update_test_2.install
Implements hook_update_dependencies().
update_test_3_update_8001 in core/modules/system/tests/modules/update_test_3/update_test_3.install
Dummy update_test_3 update 8001.
update_test_3_update_dependencies in core/modules/system/tests/modules/update_test_3/update_test_3.install
Implements hook_update_dependencies().
update_test_description_update_8001 in core/modules/system/tests/modules/update_test_description/update_test_description.install
Update test of slash in description and/or.
update_test_description_update_8002 in core/modules/system/tests/modules/update_test_description/update_test_description.install
Update test with multiline description, the quick brown fox jumped over the lazy dog.
update_test_failing_post_update_first in core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php
First update, should not be run since this module's update hooks fail.
update_test_failing_update_8001 in core/modules/system/tests/modules/update_test_failing/update_test_failing.install
This update will fail.
update_test_failing_update_8002 in core/modules/system/tests/modules/update_test_failing/update_test_failing.install
A further update.
update_test_invalid_hook_update_8000 in core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.install
Hook implementation using the reserved schema version 8000.
update_test_last_removed_update_8003 in core/modules/system/tests/modules/update_test_last_removed/update_test_last_removed.install
Dummy update function to run during the tests.
update_test_last_removed_update_last_removed in core/modules/system/tests/modules/update_test_last_removed/update_test_last_removed.install
Implements hook_update_last_removed().
update_test_no_preexisting_update_8001 in core/modules/system/tests/modules/update_test_no_preexisting/update_test_no_preexisting.install
Dummy update_test_no_preexisting update 8001.
update_test_postupdate_post_update_first in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
First update.
update_test_postupdate_post_update_second in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Second update.
update_test_postupdate_post_update_test0 in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Test0 update.
update_test_postupdate_post_update_test1 in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Test1 update.
update_test_postupdate_post_update_test_batch in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Testing batch processing in post updates update.
update_test_postupdate_removed_post_updates in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
Implements hook_removed_post_updates().
update_test_postupdate_update_8001 in core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.install
Normal update_N() function.
update_test_semver_update_n_update_8001 in core/modules/system/tests/modules/update_test_semver_update_n/update_test_semver_update_n.install
Update 8001.
update_test_with_7x_update_7200 in core/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install
Dummy update_test_with_7x update 7200.
update_test_with_7x_update_7201 in core/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install
Dummy update_test_with_7x update 7201.
update_test_with_7x_update_last_removed in core/modules/system/tests/modules/update_test_with_7x/update_test_with_7x.install
Implements hook_update_last_removed().
update_update_last_removed in core/modules/update/update.install
Implements hook_update_last_removed().
user_removed_post_updates in core/modules/user/user.post_update.php
Implements hook_removed_post_updates().
user_update_last_removed in core/modules/user/user.install
Implements hook_update_last_removed().
views_post_update_counter_field_not_sortable in core/modules/views/views.post_update.php
Clear cache to apply non-sortable counter field change.
views_removed_post_updates in core/modules/views/views.post_update.php
Implements hook_removed_post_updates().
views_test_config_updater_post_update_set_deprecations_disabled in core/modules/views/tests/modules/views_test_config_updater/views_test_config_updater.post_update.php
Test post update to set deprecations disabled.
views_ui_ajax_update_form in core/modules/views_ui/admin.inc
Updates a part of the add view form via AJAX.
views_update_last_removed in core/modules/views/views.install
Implements hook_update_last_removed().
workspaces_removed_post_updates in core/modules/workspaces/workspaces.post_update.php
Implements hook_removed_post_updates().
workspaces_update_dependencies in core/modules/workspaces/workspaces.install
Implements hook_update_dependencies().
workspaces_update_last_removed in core/modules/workspaces/workspaces.install
Implements hook_update_last_removed().
workspace_update_test_post_update_check_active_workspace in core/modules/workspaces/tests/modules/workspace_update_test/workspace_update_test.post_update.php
Checks the active workspace during database updates.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.