mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #27996 -- Doc'd no extension required for RandomUUID() on PostgreSQL 13+.
https://www.postgresql.org/docs/13/functions-uuid.html https://www.postgresql.org/docs/13/pgcrypto.html#id-1.11.7.34.10.5
This commit is contained in:
committed by
Mariusz Felisiak
parent
83fbaa9231
commit
628c4a26ee
@@ -79,6 +79,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||
def is_postgresql_12(self):
|
||||
return self.connection.pg_version >= 120000
|
||||
|
||||
@cached_property
|
||||
def is_postgresql_13(self):
|
||||
return self.connection.pg_version >= 130000
|
||||
|
||||
has_brin_autosummarize = property(operator.attrgetter('is_postgresql_10'))
|
||||
has_websearch_to_tsquery = property(operator.attrgetter('is_postgresql_11'))
|
||||
supports_table_partitions = property(operator.attrgetter('is_postgresql_10'))
|
||||
|
||||
Reference in New Issue
Block a user