Schema API

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 will cover:

  • 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.
Time: 
14-15
Average: 4.4 (38 votes)