diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-09 11:39:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-09 11:39:07 +0000 |
commit | 5e7944d5a8fee40e04db868f3203ae8b38ce47fa (patch) | |
tree | 1968733d39fb021de410b4a19f82b3ebbf211fca /includes/database/schema.inc | |
parent | d2f6d6a0c39b83ecd4e122f9f71a92a7ad197e89 (diff) | |
download | brdo-5e7944d5a8fee40e04db868f3203ae8b38ce47fa.tar.gz brdo-5e7944d5a8fee40e04db868f3203ae8b38ce47fa.tar.bz2 |
- Patch #711682 by aspilicious: fixed tyle issues.
Diffstat (limited to 'includes/database/schema.inc')
-rw-r--r-- | includes/database/schema.inc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/database/schema.inc b/includes/database/schema.inc index 4cc45b59b..c2a157d00 100644 --- a/includes/database/schema.inc +++ b/includes/database/schema.inc @@ -54,7 +54,7 @@ * INT, VARCHAR, BLOB, etc.). * * Not all sizes are available for all data types. See - * db_type_map() for possible combinations. + * DatabaseSchema::getFieldTypeMap() for possible combinations. * - 'not null': If true, no NULL values will be allowed in this * database column. Defaults to false. * - 'default': The field's default value. The PHP type of the @@ -266,9 +266,15 @@ abstract class DatabaseSchema implements QueryPlaceholderInterface { } /** - * This maps a generic data type in combination with its data size - * to the engine-specific data type. - */ + * Returns a mapping of Drupal schema field names to DB-native field types. + * + * Because different field types do not map 1:1 between databases, Drupal has + * its own normalized field type names. This function returns a driver-specific + * mapping table from Drupal names to the native names for each database. + * + * @return array + * An array of Schema API field types to driver-specific field types. + */ abstract public function getFieldTypeMap(); /** |