django migrations no migrations to apply

118 views
Skip to first unread message

Harish U Warrier

unread,
May 20, 2019, 8:12:56 AM5/20/19
to Django users


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

Chetan Ganji

unread,
May 20, 2019, 9:18:55 AM5/20/19
to django...@googlegroups.com
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


--
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...@googlegroups.com.
To post to this group, send email to django...@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.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages