Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntegrityError with last_login field in Django 1.8

I have a project deployed to a server with Django 1.8 where the creation of a new user results in this error:

null value in column "last_login" violates not-null constraint

This seems to be caused by a known bug that was addressed some months back.

What do I need to do to get the fix? Or should this issue be dealt with in some other way?

like image 639
Luís de Sousa Avatar asked Dec 01 '25 05:12

Luís de Sousa


1 Answers

I just had to create a new migration for my app:

$ ./manage.py makemigrations
$ ./manage.py migrate
like image 129
yndolok Avatar answered Dec 03 '25 23:12

yndolok