#32205: sqlmigrate crashes after removing squashed migrations.
-------------------------------------+-------------------------------------
Reporter: 老广 | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 3.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: sqlmigrate | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: closed => new
* resolution: needsinfo =>
* stage: Unreviewed => Accepted
Comment:
OK, I can reproduce this issue and attached a sample project:
{{{
$ python manage.py sqlmigrate test_one 0008
....
File "/django/django/db/migrations/graph.py", line 58, in raise_error
raise NodeNotFoundError(self.error_message, self.key,
origin=self.origin)
django.db.migrations.exceptions.NodeNotFoundError: Migration
test_one.0006_mymodel_field_8 dependencies reference nonexistent parent
node ('test_one', '0005_mymodel_field_7')
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32205#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.9d65127eb6eabb5d71a2a8b2376c0d8f%40djangoproject.com.