summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/gis/db/backends/mysql/features.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/contrib/gis/db/backends/mysql/features.py b/django/contrib/gis/db/backends/mysql/features.py
index 16e8100b44..b69fd374fe 100644
--- a/django/contrib/gis/db/backends/mysql/features.py
+++ b/django/contrib/gis/db/backends/mysql/features.py
@@ -19,3 +19,8 @@ class DatabaseFeatures(BaseSpatialFeatures, MySQLDatabaseFeatures):
@cached_property
def supports_empty_geometry_collection(self):
return self.connection.mysql_version >= (5, 7, 5)
+
+ @cached_property
+ def supports_geometry_field_unique_index(self):
+ # Not supported in MySQL since https://dev.mysql.com/worklog/task/?id=11808
+ return self.connection.mysql_is_mariadb