0

I am trying to run python manage.py test and it starts off with the usual Creating test database for alias 'default'... but then a pymysql.err.InternalError occurs with the message "Invalid default value for 'expiration_time'". expiration_time is a timestamp variable with the default value as null. One reason that I can think of why this error is occuring is probably because all migrations are being re-run and that this might not be an acceptable default value but I could not find any information on how the test db is actually created by django.

Projjol
  • 1,195
  • 2
  • 12
  • 26

0 Answers0