Skip to content
Advertisement

django.db.utils.DataError: value too long for type character varying(30). I am getting this error while migrating on heroku postgresql

The errors I am getting while migrating on PostgreSQL Heroku. Note: It is working fine on the local server.

JavaScript

there is no column with 30 lengths even tried migrating after deleting all data and still getting the same error.

This is the model of the project models.py

JavaScript

Advertisement

Answer

I just deleted the junk file inside the migrations>pycache

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement