简体   繁体   English

南迁移和django迁移有什么区别?

[英]What is the difference between south migrations and django migrations?

Can anyone please explain me the difference between south migrations and django migrations? 有谁能解释一下南迁和django迁移之间的区别? What advantage/disadvantage one has over another? 一个人有什么优势/劣势?

South is a third part django app that added support for migrations before a builtin migration solution was introduced in Django 1.7. South是django应用程序的第三部分,它在Django 1.7中引入内置迁移解决方案之前添加了对迁移的支持。 Unless you're stuck with a long-dead Django version, there's no reason you should use South at all. 除非你遇到长期死亡的Django版本,否则你根本不应该使用South。 FWIW, just checking the south project's page should have answered your question: FWIW,只是查看南方项目的页面应该已经回答了你的问题:

South has been deprecated. South已被弃用。

From Django 1.7 upwards, migrations are built into the core of Django. 从Django 1.7开始,迁移被构建到Django的核心。 If you are running a previous version, you can find the repository on BitBucket. 如果您运行的是以前的版本,则可以在BitBucket上找到存储库。

Feature-wide both are quite similar (which is not a big surprise since the new builtin migration system started it's life as the 2.0 branch of South), except the new system works better, specially when you have to merge two branches each having it's own migrations. 功能范围两者都非常相似(这不是一个大惊喜,因为新的内置迁移系统开始它的生命作为南方的2.0分支),除了新系统更好地工作,特别是当你必须合并两个分支,每个分支都拥有它自己的迁移。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM