Django-south not detecting DB changes

删除回忆录丶 提交于 2019-12-03 21:54:54

问题


I have updated our project from svn and I have new migration files. When I use :

./work/manage.py schemamigration mypackage --auto

I have this message:

Nothing seems to have changed.

But the database has changed! Why south couldn't detect any change?

Thanks in advance


回答1:


If you already have the migration files, there is no need to run schemamigration as that just generates the migration files. To apply the migration files to the database, run:

./work/manage.py migrate mypackage --merge

The merge flag will run any missed migrations as a result of an SVN update.



来源:https://stackoverflow.com/questions/8635492/django-south-not-detecting-db-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!