You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!\in_array($attributeType, Database::SPATIAL_TYPES, true)) {
359
+
$this->message = 'Spatial index can only be created on spatial attributes (point, linestring, polygon). Attribute "' . $attributeName . '" is of type "' . $attributeType . '"';
349
360
returnfalse;
350
361
}
351
-
if (in_array($attributeType, Database::SPATIAL_TYPES) && !$required && !$this->spatialIndexNullSupport) {
if (!$required && !$this->spatialIndexNullSupport) {
352
365
$this->message = 'Spatial indexes do not allow null values. Mark the attribute "' . $attributeName . '" as required or create the index on a column with no null values.';
353
366
returnfalse;
354
367
}
355
-
if (in_array($attributeType, Database::SPATIAL_TYPES) && !empty($orders) && !$this->spatialIndexOrderSupport) {
356
-
$this->message = 'Spatial indexes with explicit orders are not supported. Remove the orders to create this index.';
357
-
returnfalse;
358
-
}
368
+
}
359
369
370
+
if (!empty($orders) && !$this->spatialIndexOrderSupport) {
371
+
$this->message = 'Spatial indexes with explicit orders are not supported. Remove the orders to create this index.';
0 commit comments