From a47da3ed608d0944e4315bdd31f6eedcd4ecbacc Mon Sep 17 00:00:00 2001 From: Mark Story Date: Thu, 16 Mar 2017 22:01:27 -0400 Subject: [PATCH] Add migration docs for small/tinyint Refs cakephp/cakephp#10377 --- en/appendices/3-5-migration-guide.rst | 4 ++++ en/orm/database-basics.rst | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/en/appendices/3-5-migration-guide.rst b/en/appendices/3-5-migration-guide.rst index c34d0d931b..a5dcf9c4a0 100644 --- a/en/appendices/3-5-migration-guide.rst +++ b/en/appendices/3-5-migration-guide.rst @@ -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. diff --git a/en/orm/database-basics.rst b/en/orm/database-basics.rst index 5dcfb49953..f7a25b8156 100644 --- a/en/orm/database-basics.rst +++ b/en/orm/database-basics.rst @@ -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 @@ -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