summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database
diff options
context:
space:
mode:
authorAdrian Voicu <avenir.ro@gmail.com>2015-07-10 16:04:00 +0200
committerAdrian Voicu <avenir.ro@gmail.com>2015-07-10 16:04:00 +0200
commit00cdb810c54c57f2e07c248b0858b7cfe6d53bfd (patch)
tree37458c5c6a7fb915ee722a5bf508671129470c16 /user_guide_src/source/database
parent9bb9d072259fead8e4d9693e9b40efc91d5ad7de (diff)
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.
Diffstat (limited to 'user_guide_src/source/database')
-rw-r--r--user_guide_src/source/database/forge.rst2
1 files changed, 2 insertions, 0 deletions
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