Skip to content

Commit 85ce20b

Browse files
authored
Merge pull request #1475 from jim-parry/fix3
Correct phpdocs for Forge::addField()
2 parents 6507c84 + 170f695 commit 85ce20b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

system/Database/Forge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public function addUniqueKey($key)
340340
/**
341341
* Add Field
342342
*
343-
* @param array $field
343+
* @param array|string $field
344344
*
345345
* @return Forge
346346
*/

user_guide_src/source/dbmgmt/forge.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
####################
21
Database Forge Class
32
####################
43

@@ -63,7 +62,7 @@ mechanism for this.
6362
Adding fields
6463
=============
6564

66-
Fields are created via an associative array. Within the array you must
65+
Fields are normally created via an associative array. Within the array you must
6766
include a 'type' key that relates to the datatype of the field. For
6867
example, INT, VARCHAR, TEXT, etc. Many datatypes (for example VARCHAR)
6968
also require a 'constraint' key.

0 commit comments

Comments
 (0)