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; }