Wednesday, June 6, 2018

Re: restore migration files

Maybe you can find an old backup of your models and create a new database from them. Then overwrite the old models with your latest ones and make migrations again. Those should suffice to replace the deleted migrations.

Connected by Motorola


Leif <xingong98@gmail.com> wrote:

Dear Django Experts:

Somehow I deleted the files under migrations directory. Now I am no longer able to migrate new changes. I got 'No change detected' message when I apply python manage.py migrate. Anway I can restore files under migrations directory?

Best,

Leif

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7c972a46-5e24-44cb-bb27-b0b006197d8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6kmkbwffbyqpigyotgnp9qiy.1528291298555%40email.android.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment