From 0faaef4696ac272ee7a701d94b52aae952090eea Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Wed, 29 Feb 2012 16:54:06 -0800 Subject: Issue #1451032 by NROTC_Webmaster: Add note to schema docs about varchar columns needing to have length specified --- includes/database/schema.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/database/schema.inc b/includes/database/schema.inc index e2a1c4caa..b7ae97015 100644 --- a/includes/database/schema.inc +++ b/includes/database/schema.inc @@ -77,7 +77,8 @@ require_once dirname(__FILE__) . '/query.inc'; * (decimal digits right of the decimal point). Both values are * mandatory. Ignored for other field types. * All parameters apart from 'type' are optional except that type - * 'numeric' columns must specify 'precision' and 'scale'. + * 'numeric' columns must specify 'precision' and 'scale', and type + * 'varchar' must specify the 'length' parameter. * - 'primary key': An array of one or more key column specifiers (see below) * that form the primary key. * - 'unique keys': An associative array of unique keys ('keyname' => -- cgit v1.2.3