gregmuellegger / django-autofixture

Can create auto-generated test data.
BSD 3-Clause "New" or "Revised" License
462 stars 118 forks source link

errro with mysql Row size #90

Open albertwh1te opened 8 years ago

albertwh1te commented 8 years ago

when I use sqllite as my django databases when I run this command python manage.py loadtestdata -v0 product.TrustProduct:10 it works perfectly well But when I use Mysql as my database;

Django throwout this error message:

django.db.utils.OperationalError: (1118, 'Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.')

gregmuellegger commented 8 years ago

Hm, the generators usually get a correct max_length set that is determined from the actual model field. Can you paste the definition of your model here maybe? Are you sure the max length in the DB and in your model matches up?