From 00cdb810c54c57f2e07c248b0858b7cfe6d53bfd Mon Sep 17 00:00:00 2001 From: Adrian Voicu Date: Fri, 10 Jul 2015 17:04:00 +0300 Subject: Important note If you pass strings to the add_field() methods you won't be able to follow those by add_key() methods on those fields. --- user_guide_src/source/database/forge.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'user_guide_src/source/database') diff --git a/user_guide_src/source/database/forge.rst b/user_guide_src/source/database/forge.rst index a875f7418..a98cdb012 100644 --- a/user_guide_src/source/database/forge.rst +++ b/user_guide_src/source/database/forge.rst @@ -143,6 +143,8 @@ string into the field definitions with add_field() $this->dbforge->add_field("label varchar(100) NOT NULL DEFAULT 'default label'"); +.. note:: Passing strings as fields won't allow you to follow these calls by a add_key() call. + .. note:: Multiple calls to add_field() are cumulative. Creating an id field -- cgit v1.2.3-24-g4f1b