Commit 36b1c8b6 authored by alexpott's avatar alexpott

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

parent e6e359b4
......@@ -554,7 +554,14 @@ public function fieldExists($table, $column) {
* @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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment