Opened 2 years ago

Closed 2 years ago

#21909 closed Bug (invalid) sql/migrate fails to product SQL for geometry fields

Reported by: dfunckt Owned by: nobody
Component: GIS Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



assume the following model:

from django.contrib.gis.db import models

class Location(models.Model):
    point = models.PointField(srid=4326)
    objects = models.GeoManager()

running ./ sql testgis produces the following output:

CREATE TABLE "testgis_location" (


I have attached a test project.

Attachments (1) (4.4 KB) - added by dfunckt 2 years ago.
Test project

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by dfunckt

Test project

comment:1 Changed 2 years ago by dfunckt

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

I'm marking this ticket as invalid, since the SQL for the geometry fields is correctly produced by sqlall, and also by migrate.

While creating a test project yesterday, migrate somehow failed to create geometry fields and a quick investigation led me to opening this ticket. I'm closing it since i cannot reproduce it anymore.

Note: See TracTickets for help on using tickets.
Back to Top