Closed mixartemev closed 1 month ago
Yeah, it's a little bit problematic
Probably should just delete dynamic lower bound, as we don't enforce it anyhow on db level Will remove it in next version
Should be fixed in 0.21.0, now int fields are always signed
Describe the bug
To Reproduce Just to have negative values in PK field of related table
Expected behavior Do not get validation error
Additional context Cause: constraint
ge
is reseting to 1 for relational field (where self.reference is not None) https://github.com/tortoise/tortoise-orm/blob/345af1744a1c661da1ddb5245d31aba688ce48a1/tortoise/fields/data.py#L123