From e4cc0633301569b15a4f35575675a33edbede688 Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 27 Dec 2023 19:00:35 +0100 Subject: [PATCH] Cleanup. --- src/Command/ModelCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/ModelCommand.php b/src/Command/ModelCommand.php index 4f4b5934..7a91e324 100644 --- a/src/Command/ModelCommand.php +++ b/src/Command/ModelCommand.php @@ -1418,7 +1418,7 @@ protected function possibleEnumFields(TableSchemaInterface $schema): array foreach ($schema->columns() as $column) { $columnSchema = $schema->getColumn($column); - if (!in_array($columnSchema['type'], ['string', 'integer', 'tinyinteger'], true)) { + if (!in_array($columnSchema['type'], ['string', 'integer', 'tinyinteger', 'smallinteger'], true)) { continue; }