diff --git a/src/Collection/Helper/ColumnCreator.php b/src/Collection/Helper/ColumnCreator.php index e8f4156..596831b 100644 --- a/src/Collection/Helper/ColumnCreator.php +++ b/src/Collection/Helper/ColumnCreator.php @@ -51,6 +51,7 @@ public static function create(string $type, string $key, bool $visible, bool $so Types::BLOB => new BlobColumn(key: $key, name: $key, sortable: $sortable, visible: $visible), + 'bool', Types::BOOLEAN => new BooleanColumn(key: $key, name: $key, sortable: $sortable, visible: $visible), Types::DATE_MUTABLE, diff --git a/src/Collection/Helper/FieldCreator.php b/src/Collection/Helper/FieldCreator.php index 2068592..4a963f8 100644 --- a/src/Collection/Helper/FieldCreator.php +++ b/src/Collection/Helper/FieldCreator.php @@ -57,9 +57,11 @@ public static function create(WriteBuilder $builder, string $columnType, string Types::DECIMAL, Types::FLOAT => new DecimalField($name, $name, defaultValue: $defaultValue), + 'int', Types::INTEGER, Types::SMALLINT => new IntegerField($name, $name, defaultValue: $defaultValue), + 'bool', Types::BOOLEAN => new ToggleBtnField($name, $name, defaultValue: $defaultValue), Types::DATE_MUTABLE, diff --git a/src/Collection/Helper/RuleCreator.php b/src/Collection/Helper/RuleCreator.php index 26098bf..f69faad 100644 --- a/src/Collection/Helper/RuleCreator.php +++ b/src/Collection/Helper/RuleCreator.php @@ -37,6 +37,7 @@ public static function create(string $columnType): ?IRule Types::DECIMAL, Types::FLOAT => new DecimalRule(), + 'bool', Types::BOOLEAN => new BooleanRule(), Types::DATE_MUTABLE, @@ -48,6 +49,7 @@ public static function create(string $columnType): ?IRule Types::DATETIMETZ_MUTABLE, Types::DATETIMETZ_IMMUTABLE => new DateTimeRule(), + 'int', Types::INTEGER, Types::SMALLINT => new IntegerRule(),