Skip to content

Commit b656599

Browse files
dereuromarkJamison Bryant
authored andcommitted
Add TYPE_BIT constant to AdapterInterface (#1013)
* 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. * Bump cakephp/database constraint to ^5.3.2 for TYPE_BIT support
1 parent 4c4fb53 commit b656599

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"require": {
2525
"php": ">=8.2",
2626
"cakephp/cache": "^5.3.0",
27-
"cakephp/database": "^5.3.0",
27+
"cakephp/database": "^5.3.2",
2828
"cakephp/orm": "^5.3.0"
2929
},
3030
"require-dev": {

src/Db/Adapter/AdapterInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ interface AdapterInterface
6363

6464
// only for mysql so far
6565
public const TYPE_YEAR = TableSchemaInterface::TYPE_YEAR;
66+
public const TYPE_BIT = TableSchemaInterface::TYPE_BIT;
6667

6768
// only for postgresql so far
6869
public const TYPE_CIDR = TableSchemaInterface::TYPE_CIDR;

0 commit comments

Comments
 (0)