summaryrefslogtreecommitdiff
path: root/includes/database/schema.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-09 11:39:07 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-09 11:39:07 +0000
commit5e7944d5a8fee40e04db868f3203ae8b38ce47fa (patch)
tree1968733d39fb021de410b4a19f82b3ebbf211fca /includes/database/schema.inc
parentd2f6d6a0c39b83ecd4e122f9f71a92a7ad197e89 (diff)
downloadbrdo-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.inc14
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();
/**