#23975: No pre migrate signal emmited if all installed apps have migrations
----------------------------+---------------------
     Reporter:  kmmbvnr     |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Migrations  |    Version:  1.7
     Severity:  Normal      |   Keywords:  signals
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+---------------------
 The sync_db() function is the only place where pre_migrate signal is
 emitted. And it's called only in case if there is apps without migrations.

 
https://github.com/django/django/blob/bac7664f274be834a09e037331889959f04a75e7/django/core/management/commands/migrate.py#L156
 
https://github.com/django/django/blob/bac7664f274be834a09e037331889959f04a75e7/django/core/management/commands/migrate.py#L252

 If all installed applications have migrations, no pre_migrate signal
 happens.

--
Ticket URL: <https://code.djangoproject.com/ticket/23975>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.c640f5364ac91dddf962b1af487d9d6f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to