B
B
Black back2020-04-02 11:36:10
PostgreSQL
Black back, 2020-04-02 11:36:10

Do I need to rollback a Postgrsql table and re-create the table in Django?

I used to restore the type,
python manage.py -fake migration
but I don’t remember exactly and I can’t find anyone who knows, please help ..
When migrate, he swears Display
the following error:

django.db.utils.ProgrammingError: ERROR: relation "form_users" does not exist
LINE 1: SELECT (1) AS "a" FROM "form_users" WHERE "form_users"."numb...
^

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-04-02
@bacon

--fake
but if again, then you need to delete the table itself and the records about its migrations in django_migrations from the database, but there is info on the app, so it's not a trivial task.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question