From 5683ef646c6565717af1369e3a7267a248ced934 Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 28 Jan 2026 16:52:19 +0100 Subject: [PATCH 1/2] Add TYPE_BIT constant to AdapterInterface Adds the TYPE_BIT constant mapping to TableSchemaInterface::TYPE_BIT for consistency with the core BIT type support added in cakephp/cakephp#19223. This allows migration users to reference AdapterInterface::TYPE_BIT when defining BIT columns in MySQL migrations. --- src/Db/Adapter/AdapterInterface.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Db/Adapter/AdapterInterface.php b/src/Db/Adapter/AdapterInterface.php index 74d43406..0dad1ca3 100644 --- a/src/Db/Adapter/AdapterInterface.php +++ b/src/Db/Adapter/AdapterInterface.php @@ -63,6 +63,7 @@ interface AdapterInterface // only for mysql so far public const TYPE_YEAR = TableSchemaInterface::TYPE_YEAR; + public const TYPE_BIT = TableSchemaInterface::TYPE_BIT; // only for postgresql so far public const TYPE_CIDR = TableSchemaInterface::TYPE_CIDR; From f07f06b70f099c8d89c154326cf60245c502cdbd Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 28 Jan 2026 16:54:16 +0100 Subject: [PATCH 2/2] Bump cakephp/database constraint to ^5.3.2 for TYPE_BIT support --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0d0597f1..1c3779aa 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "require": { "php": ">=8.2", "cakephp/cache": "^5.3.0", - "cakephp/database": "^5.3.0", + "cakephp/database": "^5.3.2", "cakephp/orm": "^5.3.0" }, "require-dev": {