Issue #2462641 by jhedstrom: Incomplete documentation in Schema::addIndex() for $fields parameter

8.0.x
Alex Pott 2015-04-02 11:19:30 +01:00
parent e6e359b43b
commit 36b1c8b690
1 changed files with 8 additions and 1 deletions

View File

@ -554,7 +554,14 @@ abstract class Schema implements PlaceholderInterface {
* @param $name
* The name of the index.
* @param $fields
* An array of field names.
* An array of field names or field information; if field information is
* passed, it's an array whose first element is the field name and whose
* second is the maximum length in the index. For example, the following
* will use the full length of the `foo` field, but limit the `bar` field to
* 4 characters:
* @code
* $fields = ['foo', ['bar', 4]];
* @endcode
*
* @throws \Drupal\Core\Database\SchemaObjectDoesNotExistException
* If the specified table doesn't exist.