@@ -399,6 +399,8 @@ timestampfractional
399399 Maps to the ``TIMESTAMP(N) `` type.
400400time
401401 Maps to a ``TIME `` type in all databases.
402+ year
403+ Maps to the ``YEAR `` type. Only supported in MySQL.
402404json
403405 Maps to a ``JSON `` type if it's available, otherwise it maps to ``TEXT ``.
404406enum
@@ -411,6 +413,12 @@ linestring
411413 Maps to a single line in geospatial storage.
412414polygon
413415 Maps to a single polygon in geospatial storage.
416+ inet
417+ Maps to the ``INET `` type. Only implemented in postgres.
418+ cidr
419+ Maps to the ``CIDR `` type. Only implemented in postgres.
420+ macaddr
421+ Maps to the ``MACADDR `` type. Only implemented in postgres.
414422
415423These types are used in both the schema reflection features that CakePHP
416424provides, and schema generation features CakePHP uses when using test fixtures.
@@ -429,6 +437,9 @@ handles, and generate file handles when reading data.
429437.. versionchanged :: 5.2.0
430438 The ``nativeuuid `` type was added.
431439
440+ .. versionadded :: 5.3.0
441+ The ``inet ``, ``cidr ``, ``macaddr ``, and ``year `` types were added.
442+
432443.. _datetime-type :
433444
434445DateTime Type
@@ -1100,7 +1111,7 @@ databases. For example to create a database::
11001111.. note ::
11011112
11021113 When creating a database it is a good idea to set the character set and
1103- collation parameters (e.g. ``DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci ``).
1114+ collation parameters (e.g. ``DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci ``).
11041115 If these values are missing, the database will set whatever system default values it uses.
11051116
11061117.. meta ::
0 commit comments