Changes between Initial Version and Version 8 of Ticket #23794


Ignore:
Timestamp:
09/11/15 16:45:41 (8 years ago)
Author:
berto
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23794

    • Property Status changed from new to closed
    • Property Cc info+coding@… added
    • Property Resolution changed from to fixed
    • Property Version changed from 1.7 to master
    • Property Owner changed from nobody to Andrzej Pragacz
    • Property Has patch set
    • Property Type changed from Uncategorized to Bug
    • Property Triage Stage changed from Unreviewed to Accepted
  • Ticket #23794 – Description

    initial v8  
    11I had a model that had a ForeignKey field and a unique_together constraint involving that field. I deleted both the field and the unique_together constraint in my model and ran makemigrations. The migration created RemoveField operation and a AlterUniqueTogether operation with unique_together=set([]). When I tried to run the migration, a django.db.models.fields.FieldDoesNotExist exception occured. I edited the migration manually to put the AlterUniqueTogether operation before the RemoveField operation and then the migration worked.
     2
     3NOTE: After upgrading, you must remove the bad migration file and re-run `makemigrations` or manually move the `AlterUniqueTogether` operation manually as stated above; i.e. upgrading does not fix the existing migration.
Back to Top