Commit 19d8f2eb authored by Claude Paroz's avatar Claude Paroz
Browse files

Adapted SpatialiteGeometryColumns model to spatialite >= 4

parent 731f313d
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)