Changes between Initial Version and Version 2 of Ticket #28305


Ignore:
Timestamp:
Jun 13, 2017, 3:58:31 PM (7 years ago)
Author:
Andreas Backx
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28305

    • Property Keywords foreign key added
  • Ticket #28305 – Description

    initial v2  
    1 ''A test case has been created here: https://github.com/AndreasBackx/Django-OneToOneFieldBug-Example. How to run the test case is described there.''
     1''A test case has been created here: https://github.com/AndreasBackx/Django-OneToOneFieldBug-Example. How to run the test case is described there. The bug applies to Django 1.11.2 and the master branch of Django. There are tests for 1.10.7 which succeed and tests that fail for 1.11.2 and the master branch.''
    22
    33There is a migration issue when moving from Django 1.10.7 to Django 1.11.2. This sample I made is a slimmed down version from an internal library which moved from utf8 to utf8mb4 in MySQL. This required the keys to be changed from 255 characters to 191 characters in order to be compatible with older versions of MySQL but the reason is irrelevant here. The issue is that Django 1.11.2+ tries to change the 'id' column of which the max_length has been changed from 255 to 191 that still has a constraint. It results in the following error:
Back to Top