fix: auto-add doc string for uuid primary key columns
otherwise these columns were not shown in docs
This commit is contained in:
parent
cbfa7139e4
commit
4382601fe0
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ def uuid_column(*args, **kwargs):
|
|||
kwargs.setdefault("primary_key", True)
|
||||
kwargs.setdefault("nullable", False)
|
||||
kwargs.setdefault("default", make_true_uuid)
|
||||
if kwargs["primary_key"]:
|
||||
kwargs.setdefault("doc", "UUID primary key for the table.")
|
||||
return sa.Column(*args, **kwargs)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue