Skip to content

Commit 1cff969

Browse files
committed
mention extension for older pg versions
1 parent 323aa12 commit 1cff969

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

piccolo/columns/defaults/uuid.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ class UUID7(Default):
5151
:class:`UUID <piccolo.columns.column_types.UUID>` column a randomly
5252
generated UUID v7 value. Postgres >= 18 and Python >= 3.14 only. UUID7 can
5353
be more efficiently indexed than UUID, and inserts can be faster.
54-
"""
54+
55+
For this to work in older versions of Postgres, register an extension such
56+
as `pg_uuidv7 <https://github.com/fboulnois/pg_uuidv7>`_.
57+
58+
""" # noqa: E501
5559

5660
@property
5761
def postgres(self):

0 commit comments

Comments
 (0)