#26838: Disabling migrations via DATABASE['TEST']['MIGRATE'] affects non-testing
environment
----------------------------+--------------------
     Reporter:  toolness    |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Migrations  |    Version:  1.10
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+--------------------
 Hello! I'm using 1.10b1 and I added the following to the end of my
 `settings.py`:

 {{{
 DATABASES['default']['TEST'] = {'MIGRATE': False}
 }}}

 This made my tests succeed without requiring me to create proper
 migrations for them, which was great, because it allowed me to tinker with
 my models without needing to generate migrations.

 However, once I was done tinkering, I made a migration, which succeeded--
 but running `manage.py migrate` claimed there were no migrations to be
 applied! And `manage.py showmigrations` printed nothing, which was also
 odd. Once I removed the above line of code from my `settings.py`, however,
 both of these commands started working again.

 So I might be wrong, but it ''appeared'' as though my change to
 `settings.py` actually disabled migrations for my whole project, rather
 than only disabling them for tests.

 If this warrants further inspection, I can try creating a simple test case
 for it.

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

Reply via email to