Answer the question
In order to leave comments, you need to log in
How to recreate migrations in Django for an application without resetting all data?
After an unsuccessful experiment, I lost the folder with migrations from the main application in production.
For additional applications (those that created after the main one), all migrations are correct.
I had to manually set up some tables, including relations, using phpmyadmin.
All that we managed to do now is to create an initial migration:
<b>python manage.py makemigrations exhibition</b>
Migrations for 'exhibition':
exhibition/migrations/<b>0001_initial.py</b>
...
<b>python manage.py migrate exhibition --fake</b>
...
<i>Migration rating.0001_initial is applied before its dependency exhibition.0001_initial on database 'default'</i>
python manage.py makemigrations?
Answer the question
In order to leave comments, you need to log in
https://simpleisbetterthancomplex.com/tutorial/201...
PS Well, nothing prevents you from trying it at a neighboring base
In general, everything worked out, I created migrations in turn, and then applied them as fake ones. Thanks dimonchik2013
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question