Fixed -- MySQL does not support SPATIAL fields in unique indices.
@@ -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
