Introduced in Drupal 6, the Schema API allows modules to declare their database tables in a structured array (similar to the Form API) and provides API functions for creating, dropping, and changing tables, columns, keys, and indexes.
The Schema module provides additional Schema-related functionality not provided by the core Schema API that is useful for module developers. Currently, this includes:
- Schema documentation: hyperlinked display of the schema's embedded documentation explaining what each table and field is for.
- Schema structure generation: the module examines the live database and creates Schema API data structures for all tables that match the live database.
- Schema comparison: the module compares the live database structure with the schema structure declared by all enabled modules, reporting on any missing or incorrect tables.
Note for MySQL users: The Schema module requires MySQL 5. Prior versions of MySQL do not support the INFORMATION_SCHEMA database that the Schema module uses to inspect the database.
Related modules
- Schema reference field: adds a new field type that uses Schema to let you refer to database connections, tables, and/or columns.
Supporting organizations:
Drupal 7 maintenance
Stewardship
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Administration tools, Developer tools
3,005 sites report using this module
- Created by bjaspan on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
2.0.0-alpha3
released 1 June 2024
Works with Drupal: ^9.4 || ^10
Drupal 10 support
Install:
Development version: 2.x-dev updated 1 Jun 2024 at 15:04 UTC









