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 From 1fb0cfee53f4424b5f9ca09f734501a942ece9d5 Mon Sep 17 00:00:00 2001 From: Adrian Voicu Date: Mon, 13 Jul 2015 11:36:15 +0300 Subject: Update forge.rst --- user_guide_src/source/database/forge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 a98cdb012..a8a346eb4 100644 --- a/user_guide_src/source/database/forge.rst +++ b/user_guide_src/source/database/forge.rst @@ -143,7 +143,7 @@ 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:: Passing raw strings as fields cannot be followed by ``add_key()`` calls on those fields. .. note:: Multiple calls to add_field() are cumulative. -- cgit v1.2.3-24-g4f1b From ff50c54266bbd484dd5fb2887974abb69a141817 Mon Sep 17 00:00:00 2001 From: Adrian Voicu Date: Mon, 13 Jul 2015 11:55:51 +0300 Subject: Update forge.rst --- user_guide_src/source/database/forge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 a8a346eb4..646e3a56e 100644 --- a/user_guide_src/source/database/forge.rst +++ b/user_guide_src/source/database/forge.rst @@ -143,7 +143,7 @@ string into the field definitions with add_field() $this->dbforge->add_field("label varchar(100) NOT NULL DEFAULT 'default label'"); -..note:: Passing raw strings as fields cannot be followed by ``add_key()`` calls on those fields. +.. note:: Passing raw strings as fields cannot be followed by ``add_key()`` calls on those fields. .. note:: Multiple calls to add_field() are cumulative. -- cgit v1.2.3-24-g4f1b