lilspikey / django-background-task

A database-backed work queue for Django
BSD 3-Clause "New" or "Revised" License
107 stars 207 forks source link

IntegrityError and migrate fail #21

Open diogosimao opened 6 years ago

diogosimao commented 6 years ago

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!