Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

IntegrityError and migrate fail #21

Open
diogosimao opened this issue May 9, 2018 · 0 comments
Open

IntegrityError and migrate fail #21

diogosimao opened this issue May 9, 2018 · 0 comments

Comments

@diogosimao
Copy link

diogosimao commented May 9, 2018

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant