Code

Opened 9 months ago

Closed 9 months ago

#20759 closed Bug (duplicate)

Test DB Creation doesn't create PointField with db_index=True

Reported by: jarus Owned by: nobody
Component: GIS Version: 1.5
Severity: Normal Keywords: GeoDjango, Index, Test
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I want to test my GeoDjango project but by creation of the test database I got following error:

Creating test database for alias 'default'...
Failed to install index for map.OSMPlace model: column "point" does not exist

It is correct the Table map_osmplace exists without a point column.

from django.contrib.gis.db import models
point = models.PointField(db_index=True)

Another table without an index on the point field contains the point column.

Attachments (0)

Change History (1)

comment:1 Changed 9 months ago by claudep

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

Same issue as #20758

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.