#24163: Migrations fail when changing from OneToOneField to ForeignKey
-------------------------------------+-------------------------------------
     Reporter:  harnash              |                    Owner:  MarkusH
         Type:  Bug                  |                   Status:  new
    Component:  Migrations           |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:  OneToOneField        |             Triage Stage:  Accepted
  ForeignKey MySQL                   |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by MarkusH):

 * status:  closed => new
 * has_patch:  1 => 0
 * resolution:  fixed =>
 * stage:  Ready for checkin => Accepted


Comment:

 The recent change breaks tests on Oracle:

 http://djangoci.com/job/django-
 
oracle/lastCompletedBuild/database=oracle11,python=python3.4/testReport/schema.tests/SchemaTests/test_alter_fk_to_o2o/

 {{{#!python
 ======================================================================
 FAIL [0.001s]: test_alter_fk_to_o2o (schema.tests.SchemaTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/jenkins/workspace/django-
 oracle/database/oracle11/python/python3.4/tests/schema/tests.py", line
 629, in test_alter_fk_to_o2o
     self.assertTrue(author_is_unique, "No unique constraint for author_id
 found")
 AssertionError: False is not true : No unique constraint for author_id
 found

 ----------------------------------------------------------------------
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24163#comment:8>
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/065.8672381b999a16bae301bebb578a2aba%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to