Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django.db.utils.IntegrityError: column contains null values

1) Drop the problematic columns from your local table
3) Delete all the migration files you created for these columns change
4) execute python manage.py makemigrations
5) execute python manage.py migrate
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #column #null #values
ADD COMMENT
Topic
Name
4+9 =