#24588: Improve handling apps without migrations while running migrate command.
-----------------------------+----------------------
     Reporter:  coldmind     |      Owner:  coldmind
         Type:  New feature  |     Status:  new
    Component:  Migrations   |    Version:  1.8
     Severity:  Normal       |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+----------------------
 Consider situation - https://pypi.python.org/pypi/django-contrib-
 comments/1.5 does not have a migration inside.
 It depends on Content-Type model.
 So we get something like:
 {{{
 claudep: the traceback shows that the exception happens when syncing apps
 without migrations
 [4:23pm] knbk: that "worked" with a big disclaimer on 1.7 but was
 unsupported, but somehow breaks on 1.8
 [4:23pm] claudep: so the issue is "a unmigrated app depends on an app with
 migrations"
 }}}

 The error is `django.db.utils.ProgrammingError: relation
 "django_content_type" does not exist`.
 Steps to reproduce - simply add `django_comments` to clean project and run
 `python manage.py migrate`. (But, I can reproduce with on postgres, but
 not on sqlite for example).

 We need to improve handling apps, that does not have a migration, and show
 more user-friendly error rather than throwing exception, which user must
 investigate.

--
Ticket URL: <https://code.djangoproject.com/ticket/24588>
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/051.c6ea24f944e600cc4e9cf9fa43e66189%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to