Modify ↓
Ticket #413 (closed defect: fixed)
Oracle backend throws an error in backward migration if a model does not have an AutoField
| Reported by: | Siddharta <siddharta@…> | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | migrations | Version: | 0.7 |
| Keywords: | oracle | Cc: |
Description
When a model has an AutoField?, the oracle backend creates a SEQUENCE for it. The sequence is dropped in the backward migration.
If a model does not have an AutoField? (some existing field is explicitly marked as a primary key), then the sequence is not created. The backward migration still tries to drop the sequence, but since the sequence does not exist, it throws an error.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
