an existing codebase. I just need to get it to run locally.
So I cloned, created a venv, installed dependencies, created a postgres server
updated environment, then
python manage.py migrate
Then I get this error
django.db.utils.ProgrammingError: relation "points_pointsetting" does not exist
LINE 1: ...", "points_pointsetting"."points_reset_time" FROM "points_po..
But there is pointsetting table already in migration. db is empty ofc. How do I migrate /sync db ?
Your db structure must be aligned to the applied migrations So if your db has no table why is the migrations table referencing?
Обсуждают сегодня