Skip to content

Commit e039a72

Browse files
authored
Merge pull request #2262 from cakephp/MasterOdin-patch-1
Reword null option description
2 parents cb5afbf + b8bc5c2 commit e039a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/migrations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ Option Description
778778
limit set maximum length for strings, also hints column types in adapters (see note below)
779779
length alias for ``limit``
780780
default set default value or action
781-
null allow ``NULL`` values, defaults to false if `identity` option is set to true, else defaults to true
781+
null allow ``NULL`` values, defaults to ``true`` (setting ``identity`` will override default to ``false``)
782782
after specify the column that a new column should be placed after, or use ``\Phinx\Db\Adapter\MysqlAdapter::FIRST`` to place the column at the start of the table *(only applies to MySQL)*
783783
comment set a text comment on the column
784784
======= ===========
@@ -806,7 +806,7 @@ For ``smallinteger``, ``integer`` and ``biginteger`` columns:
806806
======== ===========
807807
Option Description
808808
======== ===========
809-
identity enable or disable automatic incrementing
809+
identity enable or disable automatic incrementing (if enabled, will set ``null: false`` if ``null`` option is not set)
810810
signed enable or disable the ``unsigned`` option *(only applies to MySQL)*
811811
======== ===========
812812

0 commit comments

Comments
 (0)