Skip to content

Commit 2ae3837

Browse files
Update src/Database/Validator/Attribute.php
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 25a3fcd commit 2ae3837

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/Validator/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ protected function validateDefaultTypes(string $type, mixed $default): void
539539
$this->message = 'Default value ' . $default . ' does not match given type ' . $type;
540540
throw new DatabaseException($this->message);
541541
}
542-
if ($defaultType === 'string' && !BigInt::isIntegerString($default)) {
542+
if ($defaultType === 'string' && !BigInt::isIntegerString($default, $attribute->getAttribute('signed', true))) {
543543
$this->message = 'Default value ' . $default . ' is not a valid integer string for type bigint';
544544
throw new DatabaseException($this->message);
545545
}

0 commit comments

Comments
 (0)