Closed benglazer closed 7 years ago
Have written a proof-of-concept that uses TextField
by default but allows a setting to override the field type (so current django-field-history users will be completely unaffected, but new users can use whatever object_id
type they like). Will submit a pull request shortly.
InnoDB indexes in MySQL can only be created for columns with a max length of 767 bytes (see the third bullet under Maximums and Minimums), so the TextField that
FieldHistory.object_id
currently uses causes migration 0001 to throw an exception. Example output:The obvious solution is to change
FieldHistory.object_id
to a fixed-length field, such as aCharField
.