W3cubDocs

/Drupal 8

schema.inc

Schema API handling functions.

File

core/includes/schema.inc

Functions

Name Description
drupal_get_installed_schema_version Returns the currently installed schema version for a module.
drupal_get_module_schema Returns a module's schema.
drupal_get_schema_versions Returns an array of available schema versions for a module.
drupal_install_schema Creates all tables defined in a module's hook_schema().
drupal_schema_get_field_value Typecasts values to proper datatypes.
drupal_set_installed_schema_version Updates the installed version information for a module.
drupal_uninstall_schema Removes all tables defined in a module's hook_schema().
_drupal_schema_initialize Fills in required default values for table definitions from hook_schema().

Constants

Name Description
SCHEMA_UNINSTALLED Indicates that a module has not been installed yet.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!schema.inc/8.1.x