Skip to content

Commit 536dab6

Browse files
authored
Merge pull request #7342 from kenjis/fix-docs-Forge-addColumn-NULL
docs: add note for addColumn() and NULL
2 parents ece0c76 + fc1870b commit 536dab6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

user_guide_src/source/dbmgmt/forge.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ The ``addColumn()`` method is used to modify an existing table. It
254254
accepts the same field array as :ref:`Creating Tables <adding-fields>`, and can
255255
be used to add additional fields.
256256

257+
.. note:: Unlike when creating a table, if ``null`` is not specified, the column
258+
will be ``NULL``, not ``NOT NULL``.
259+
257260
.. literalinclude:: forge/022.php
258261

259262
If you are using MySQL or CUBIRD, then you can take advantage of their

0 commit comments

Comments
 (0)