Changes between Initial Version and Version 1 of Ticket #25293


Ignore:
Timestamp:
Aug 19, 2015, 1:10:34 PM (9 years ago)
Author:
Hubert Bielenia
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25293 – Description

    initial v1  
    4141
    4242As you can see, the migration starts by removing implicit `id` and `user` fields, to later substitute them with implicit `user_ptr` field that serves both as foreign and primary key. Unfortunately, `migrations.RemoveField` uses `ALTER TABLE` statements, and this code attempts to delete all columns on the table, resulting in OperationalError with MySQL 5.8:
    43 `_mysql_exceptions.OperationalError: (1090, "You can't delete all columns with ALTER TABLE; use DROP TABLE instead")`.
     43`django.db.utils.OperationalError: (1090, "You can't delete all columns with ALTER TABLE; use DROP TABLE instead")`.
    4444
    4545It looks to me like an unwanted behaviour.
Back to Top