#35151: makemigrations hangs forever on complex apps/models
---------------------------------+--------------------------------------
Reporter: Seth Syberg | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 5.0
Severity: Normal | Resolution: needsinfo
Keywords: migrations hang | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by Seth Syberg):
One point of clarification on the `Autodetector` suggestion - I'm running
`makemigrations` on an empty database and no `initial` migrations at all.
It's as if I just coded all of my models at once and ran `makemigrations`
for the first time. In theory this should always work right? Especially
given that this is live production code and there exists a set of
migrations that can be run successfully to create this database state.
I'm open to trying to produce a minimal reproduction, but I have no idea
where to even begin. This only cropped up after we'd created 7+ apps with
100s of models. I think if I knew how to create a minimal reproduction,
I'd also know what to comment out to create an `initial` migration and
wouldn't be submitting this ticket at all.
--
Ticket URL: <https://code.djangoproject.com/ticket/35151#comment:4>
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/0107018d56f63146-857dfd96-b6be-45f9-a6ea-7c63d68d15bf-000000%40eu-central-1.amazonses.com.