You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Post model contains a unique_together constraint with includes the (BLOB) guid field, making it MySQL incompatible. Running syncdb results in the following error:
_mysql_exceptions.OperationalError: (1170, "BLOB/TEXT column 'text' used in key specification without a key length")
I was going to submit a patch, but I'm not sure how you want to handle this. Clearly, the easiest thing would be to just remove the constraint, however another option is to store a hash of the guid and use that for the unique_together tuple instead.
Here's some more information about this particular limitation.
The text was updated successfully, but these errors were encountered:
The Post model contains a
unique_together
constraint with includes the (BLOB)guid
field, making it MySQL incompatible. Running syncdb results in the following error:I was going to submit a patch, but I'm not sure how you want to handle this. Clearly, the easiest thing would be to just remove the constraint, however another option is to store a hash of the
guid
and use that for theunique_together
tuple instead.Here's some more information about this particular limitation.
The text was updated successfully, but these errors were encountered: