Opened 12 years ago
Closed 12 years ago
#21909 closed Bug (invalid)
manage.py sql/migrate fails to product SQL for geometry fields
| Reported by: | Akis Kesoglou | Owned by: | nobody |
|---|---|---|---|
| Component: | GIS | Version: | dev |
| 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 |
Description
Hello,
assume the following model:
from django.contrib.gis.db import models
class Location(models.Model):
point = models.PointField(srid=4326)
objects = models.GeoManager()
running ./manage.py sql testgis produces the following output:
BEGIN;
CREATE TABLE "testgis_location" (
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT
)
;
COMMIT;
I have attached a test project.
- Python 2.7.5 (also happens in Python 3.3)
- Django master@9c8d62a06fc83efa019f23b6b87b39a82c95ab97
- SQLite 3.7
- spatialite 4.1
Attachments (1)
Change History (2)
by , 12 years ago
| Attachment: | testgis.zip added |
|---|
comment:1 by , 12 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → 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.
Test project