Ticket #413 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

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.

Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to assigned
  • Milestone set to 0.7.1

comment:2 Changed 4 years ago by andrew

  • Milestone changed from 0.7.1 to 0.7.2

comment:3 Changed 4 years ago by andrew

  • Milestone changed from 0.7.2 to 1.0

comment:4 Changed 4 years ago by Stephan Jaensch <sj@…>

This was fixed by changeset 48a3bcfc2226.

comment:5 Changed 4 years ago by andrew

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.