honzakral / django-threadedcomments

django-threadedcomments is a simple yet flexible threaded commenting system for Django.
BSD 3-Clause "New" or "Revised" License
623 stars 164 forks source link

Failed Index on Blob/Text Column #29

Closed gamingdroid closed 13 years ago

gamingdroid commented 13 years ago

Get the following error, when doing a syncdb:

Failed to install index for threadedcomments.ThreadedComment model: (1170, "BLOB/TEXT column 'tree_path' used in key specification without a key length")

Software used:

django 1.3 threadedcomments 0.9 (as downloaded form github today, 6/27/2011) MySQL 5

honzakral commented 13 years ago

This is in fact a bug in Django unfortunately (https://code.djangoproject.com/ticket/2495) the workaround is to remove the index dexinition, syncdb and create the index manually.

rjmoggach commented 11 years ago

Please document the process you've described as a workaround, however brief.