django-background-task icon indicating copy to clipboard operation
django-background-task copied to clipboard

IntegrityError and migrate fail

Open diogosimao opened this issue 6 years ago • 0 comments

I'm running migrate after installing background_task with Django==1.11.13, django-background-tasks==1.1.13 and it won't finish with success. [EDIT]: previously installed django-background-task==0.1.8 with Django==1.5.1.

In fact the first migrate might have been ran with an older version of Django and the MySQL database set-up is old and is a production copy.

I get the following error on Django Admin: IntegrityError at /admin/background_task/task/add/

and after migrate I get the following error:

    _mysql.connection.query(self, query)
django.db.utils.IntegrityError: (1364, "Field 'name' doesn't have a default value")

What kind of information would help if i give in order to get me to find some fix? Thanks!

diogosimao avatar May 09 '18 21:05 diogosimao