You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/migrations.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -778,7 +778,7 @@ Option Description
778
778
limit set maximum length for strings, also hints column types in adapters (see note below)
779
779
length alias for ``limit``
780
780
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``)
782
782
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)*
783
783
comment set a text comment on the column
784
784
======= ===========
@@ -806,7 +806,7 @@ For ``smallinteger``, ``integer`` and ``biginteger`` columns:
806
806
======== ===========
807
807
Option Description
808
808
======== ===========
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)
810
810
signed enable or disable the ``unsigned`` option *(only applies to MySQL)*
0 commit comments