Changes between Initial Version and Version 1 of Ticket #29123


Ignore:
Timestamp:
Feb 11, 2018, 3:18:53 PM (7 years ago)
Author:
Ed Morley
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29123 – Description

    initial v1  
    44
    55== STR:
    6 1. Git clone `https://github.com/edmorley/django-migration-int-to-fk-testcase`
     61. Git clone [https://github.com/edmorley/django-migration-int-to-fk-testcase https://github.com/edmorley/django-migration-int-to-fk-testcase]
    772. `pip install https://github.com/django/django/archive/master.zip`
    883. `./manage.py migrate`
     
    1717== Actual:
    1818
    19 The new `0002_broken_migration.py` migration incorrectly lists the `AddField`
    20 operation before the `RemoveField` operation...
     19The new `0002_broken_migration.py` migration incorrectly lists the `AddField` operation before the `RemoveField` operation...
    2120
    2221{{{#!python
     
    4645Running migrations:
    4746  Applying testapp.0002_broken_migration...Traceback (most recent call last):
    48   File "/c/Users/Ed/.virtualenvs/django-master/lib/python3.6/site-packages/django/db/backends/utils.py", line 83, in _execute
     47  File ".../site-packages/django/db/backends/utils.py", line 83, in _execute
    4948    return self.cursor.execute(sql)
    50   File "/c/Users/Ed/.virtualenvs/django-master/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 290, in execute
     49  File ".../site-packages/django/db/backends/sqlite3/base.py", line 290, in execute
    5150    return Database.Cursor.execute(self, query)
    5251sqlite3.OperationalError: duplicate column name: foo_id
     
    5756* This affects both the SQLite backend and the MySQL backend (others not tested).
    5857* At time of testing, django master was at revision `6d794fb76212bb8a62fe2cd97cff173054e1c626`.
     58* The above was using Python 3.6.2.
Back to Top