Commit 86655111 authored by Claude Paroz's avatar Claude Paroz
Browse files

[1.7.x] Adapted SpatialiteGeometryColumns model to spatialite >= 4

parent 04030acb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -13,6 +13,9 @@ class SpatialiteGeometryColumns(models.Model):
    """
    f_table_name = models.CharField(max_length=256)
    f_geometry_column = models.CharField(max_length=256)
    if connection.ops.spatial_version[0] >= 4:
        type = models.IntegerField(db_column='geometry_type')
    else:
        type = models.CharField(max_length=30)
    coord_dimension = models.IntegerField()
    srid = models.IntegerField(primary_key=True)