We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
软件工程实践系列文章, 会着重讲述实际的工程项目中是如何协作开发软件的。 本文主要介绍如何使用 Git 来支撑整个开发流。
https://liriansu.com/posts/2020-01-14-git-workflow/
The text was updated successfully, but these errors were encountered:
🤔看到发布的 pipeline 里有灰度的过程,如何处理 migration 的问题呢?
Sorry, something went wrong.
是不是原则上只能做向下兼容的数据库变更,不然有时候回滚也会有问题,不知道你们的最佳实践是什么
@daya0576 对的,Migration 确保兼容即可。 最常见的例子是加字段确保 null=True,不论是发布还是回滚都是支持的。
null=True
有的时候 Migration 需要在代码层发布之后。 举个例子是删字段,则需要先在代码层发布了无引用的代码,然后单独进行一次 Migration。
通过 Django Migration 也是能做到完全兼容的, 跟用裸 SQL 直接管理 Migration 的最佳实践其实是一样的。
这里有篇前人写的 Django Migration without Downtime,讲的更详细
No branches or pull requests
软件工程实践之 Git 开发流 - 浮云计算
软件工程实践系列文章,
会着重讲述实际的工程项目中是如何协作开发软件的。
本文主要介绍如何使用 Git 来支撑整个开发流。
https://liriansu.com/posts/2020-01-14-git-workflow/
The text was updated successfully, but these errors were encountered: