From 2f963164464994ecdc3609f614850e12a7a234a2 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon <yahgrp@poplarware.com> Date: Wed, 29 Feb 2012 16:53:05 -0800 Subject: [PATCH] Issue #1451032 by NROTC_Webmaster: Add note to schema docs about varchar columns needing to have length specified --- core/includes/database/schema.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/includes/database/schema.inc b/core/includes/database/schema.inc index 27934dcdf041..8905d3cecc83 100644 --- a/core/includes/database/schema.inc +++ b/core/includes/database/schema.inc @@ -77,7 +77,8 @@ * (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' => -- GitLab