Schema API
Last updated on
24 April 2025
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. This session covered:
- the rationale, design, and benefits of the Schema API and data structure,
- how modules should use the Schema API to create tables,
- how to integrate the Schema API with the module update mechanism (hook_update_N), and
- future directions and goals for Schema API and related functionality.
The slides for this session are available at http://jaspan.com/alive-kicking-and-speaking-barcelona.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion