Skip to content

Commit

Permalink
Increase __max_name_length__ limit
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Jan 10, 2024
1 parent 5eaa42a commit 45bd004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edgy/core/db/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Index:
"""

suffix: str = "idx"
__max_name_length__: ClassVar[int] = 30
__max_name_length__: ClassVar[int] = 63
name: Optional[str] = None
fields: Optional[Sequence[str]] = None

Expand Down Expand Up @@ -45,7 +45,7 @@ class UniqueConstraint:

fields: List[str]
name: Optional[str] = None
__max_name_length__: ClassVar[int] = 30
__max_name_length__: ClassVar[int] = 63

@model_validator(mode="before")
def validate_data(cls, values: Any) -> Any:
Expand Down

0 comments on commit 45bd004

Please sign in to comment.