django IntegrityError: (1048, "Column 'last_login' cannot be null")
<p>So I got this error, and looked at this stackoverflow question:
<a href="https://stackoverflow.com/questions/33847110/django-registration-1048-column-last-login-cannot-be-null">django-registration (1048, &quot;Column &#39;last_login&#39; cannot be null&quot;)</a></p>

<p>So I went into the database and deleted the row with 0005_alter_user_last_login_null.py.</p>

<p>After I ran: python manage.py migrate it still didn't detect any new migrations.</p>

<p>How am I supposed to fix my database and make the user last_login optional? I thought there might be some way to reapply a previous migration but I couldn't get that to work. Anyone have any ideas on how to fix the database?</p>

<p>Thanks in advance!</p>

<p>EDIT:</p>

<p>Output of python ./manage.py showmigrations auth</p>

<p>[X] 0001_initial<br>
 [X] 0002_alter_permission_name_max_length<br>
 [X] 0003_alter_user_email_max_length<br>
 [X] 0004_alter_user_username_opts<br>
 [ ] 0005_alter_user_last_login_null<br>
 [X] 0006_require_contenttypes_0002<br>
 [X] 0007_alter_validators_add_error_messages</p>