Hi Harish,

Did you commit your changes to git/svn repo after changing the models?
Did they fetch the latest changes from the repo?

Is your db file also in repo?
If yes, there would a table inside the database db.sqlite3, which stores
the information about which migrations were executed.
You have to delete the entry for the migration in question.

Cheers!


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Mon, May 20, 2019 at 5:42 PM Harish U Warrier <har...@tipstat.com> wrote:

>
>
> In django models i added a new field
>
> in my system its working fine.
>
> but in other systems its showing  no migrations to apply
>
> how to solve it without effecting data?
>
> i tried deleting contents of migrations folder except __init__.py
>
> enter code here
>
> but still same error
>
> what is real method to do migrations while working in a team, live test
> servers etc?
>
> my version is 2.2
>
> --
> 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+unsubscr...@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/00ec6e6a-73f1-4d95-9ab6-2565ae29ff40%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/00ec6e6a-73f1-4d95-9ab6-2565ae29ff40%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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+unsubscr...@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/CAMKMUjtKuwR0nLtTbP4P8BMWP-kx%2B36n5%2BxDvF89tuBJj4S_Vw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to