Changes between Initial Version and Version 1 of Ticket #25293
- Timestamp:
- Aug 19, 2015, 1:10:34 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25293 – Description
initial v1 41 41 42 42 As 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")`. 44 44 45 45 It looks to me like an unwanted behaviour.