Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions en/appendices/3-5-migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ New Features
* ``Cake\Routing\Router::reverseToArray()`` was added. This method allow you to
convert a request object into an array that can be used to generate URL
strings.
* New abstract types were added for ``smallinteger`` and ``tinyinteger``.
Existing ``SMALLINT`` and ``TINYINT`` columns will now be reflected as these
new abstract types. ``TINYINT(1)`` columns will continue to be treated as
boolean columns in MySQL.
11 changes: 11 additions & 0 deletions en/orm/database-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ uuid
integer
Maps to the INTEGER type provided by the database. BIT is not yet supported
at this moment.
smallinteger
Maps to the SMALLINT type provided by the database.
tinyinteger
Maps to the TINYINT or SMALLINT type provided by the database. In MySQL
``TINYINT(1)`` is treated as a boolean.
biginteger
Maps to the BIGINT type provided by the database.
float
Expand Down Expand Up @@ -356,6 +361,12 @@ automatically convert input parameters from ``DateTime`` instances into a
timestamp or formatted datestrings. Likewise, 'binary' columns will accept file
handles, and generate file handles when reading data.

.. versionchanged:: 3.3.0
The ``json`` type was added.

.. versionchanged:: 3.5.0
The ``smallinteger`` and ``tinyinteger`` types were added.

.. _adding-custom-database-types:

Adding Custom Types
Expand Down