Opened 6 years ago

Closed 6 years ago

#29792 closed Bug (fixed)

GeometryFields do not preserve Oracle specific fields in migrations

Reported by: Jani Tiainen Owned by: Jani Tiainen
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

GeometryFields do have two attributes that are Oracle specific extent and tolerance when doing migrations both are missing and thus are reset to default values.

Extent affects r-tree generation and tolerance affects some spatial operations.

Change History (8)

comment:1 by Simon Charette, 6 years ago

Component: UncategorizedGIS
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug
Version: 2.1master

I didn't reproduce but the report looks legit by looking at GeometryField.deconstruct.

https://github.com/django/django/blob/90d93a1b425c0e6e3d88afa9fff78790300e1e38/django/contrib/gis/db/models/fields.py#L239-L246

comment:2 by Tim Graham, 6 years ago

Summary: GeometryFields do not preserve Oracle spesific fields in migrationsGeometryFields do not preserve Oracle specific fields in migrations

comment:3 by Jani Tiainen, 6 years ago

Owner: changed from nobody to Jani Tiainen
Status: newassigned

comment:4 by Jani Tiainen, 6 years ago

Has patch: set

comment:5 by Simon Charette, 6 years ago

Patch needs improvement: set

Left some comments for adjustments.

comment:6 by Jani Tiainen, 6 years ago

Patch needs improvement: unset

Second round. Made changes suggested in review.

comment:7 by Mariusz Felisiak, 6 years ago

Triage Stage: AcceptedReady for checkin

comment:8 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 5a77190e:

Fixed #29792 -- Made GeometryField.deconstruct() handle 'extent' and 'tolerance' args.

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