79743335

Date: 2025-08-22 11:18:05
Score: 1.5
Natty:
Report link

I got this error with django (AlterUniqueTogether) and mariadb when adding unique_together={('field1', 'field2')} constraint, where field2 was varchar(1000). Size of that field (1000x4) was too big for max index key length of 3072 bytes. field1 was fk so somehow i was getting that error and spent lot of time debugging it.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: pera