mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
fix: float column creation!
This commit is contained in:
parent
2554adb41e
commit
e0a4c698bc
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue