mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Adapted SpatialiteGeometryColumns model to spatialite >= 4
See also: https://www.gaia-gis.it/fossil/libspatialite/wiki?name=switching-to-4.0
This commit is contained in:
		| @@ -13,6 +13,9 @@ class SpatialiteGeometryColumns(models.Model): | |||||||
|     """ |     """ | ||||||
|     f_table_name = models.CharField(max_length=256) |     f_table_name = models.CharField(max_length=256) | ||||||
|     f_geometry_column = 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) |         type = models.CharField(max_length=30) | ||||||
|     coord_dimension = models.IntegerField() |     coord_dimension = models.IntegerField() | ||||||
|     srid = models.IntegerField(primary_key=True) |     srid = models.IntegerField(primary_key=True) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user