fix: float column creation!

This commit is contained in:
Darshan committed 2025-05-04 18:43:32 +05:30
1 parent 2554adb41e
commit e0a4c698bc
1 file changed
+2 -2
@@ -87,8 +87,8 @@ class Create extends ColumnAction
EventDatabase $queueForDatabase,
Event $queueForEvents
): void {
$min ??= -INF;
$max ??= INF;
$min ??= -PHP_FLOAT_MAX;
$max ??= PHP_FLOAT_MAX;
if ($min > $max) {
throw new Exception(Exception::ATTRIBUTE_VALUE_INVALID, 'Minimum value must be lesser than maximum value');