Some warning about manage.py migrate after upgrading to 6.4

╄→гoц情女王★ 提交于 2019-12-11 17:53:43

问题


I upgrade TCMS from 6.3 to 6.4. when executing command "docker exec -it kiwi_web /Kiwi/manage.py migrate", I got following message: Operations to perform: Apply all migrations: admin, attachments, auth, contenttypes, core, django_comments, kiwi_auth, linkreference, management, sessions, sites, testcases, testplans, testruns Running migrations: No migrations to apply. Your models have changes that are not yet reflected in a migration, and so won't be applied. Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

Shall I handle this? Not see this before.


回答1:


This is issue with one of our dependent libraries which is being solved as we speak: https://github.com/treyhunner/django-simple-history/issues/512

If you are working on a new Kiwi TCMS installation running ./manage.py migrate for the first time is fine, trying to run it a second time will produce the error mentioned in original comment. This doesn't affect your DB at all.

If you are trying to upgrade from a previous version of Kiwi TCMS this will break the upgrades b/c migrate will refuse to execute. You can manually apply this change to your Docker image: https://github.com/kiwitcms/Kiwi/pull/710/commits/61368aa254073bf6189bc3821f71d190c1a18501

or wait until we release the next version.



来源:https://stackoverflow.com/questions/54177838/some-warning-about-manage-py-migrate-after-upgrading-to-6-4

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