0
votes

Operations to perform: Apply all migrations: admin, api, auth, contenttypes, sessions Running migrations: Applying api.0004_auto_20220121_0056...Traceback (most recent call last): File "/app/.heroku/python/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) psycopg2.errors.SyntaxError: syntax error at or near "9223372036854775807" LINE 1: ...TABLE "api_hero" ALTER COLUMN "name" TYPE varchar(9223372036...

Can you add the hero model and api.0004_auto_20220121_0056 migration file to your question? The length being passed (9223372036854775807) is longer than the max allowed length in postgres, where are you defining or passing it?Iain Shelvington
from django.db import models import sys # Create your models here. class Hero(models.Model): my_data = models.TextField() def __str__(self): return self.my_dataGuptag