/* drucafe */
A Drupal schema definition is an structure representing one or more tables and their related keys and indexes. A schema is defined by hook_ (), which usually lives in a modulename. file.
By implementing () and specifying the tables your module declares, you can easily create and drop these tables on all supported database engines. You don't have to deal with the different SQL dialects for creation and alteration of the supported database engines.
hook_schema() should return an array with a key for each that the module defines.
The following keys are defined:
All parameters apart from ' ' are optional except that type 'numeric' columns must specify ' ' and ' ', and type 'varchar' must specify the ' ' parameter.
A key column specifier is either a string naming a column or an array of two elements, column name and length, specifying a prefix of the named column.
No comments:
Post a Comment