Lirian Su

Results 127 comments of Lirian Su

> 又发明了一门新的语言 ![xkcd927](https://imgs.xkcd.com/comics/standards.png)

> ipv4 / unicode / int64 已经够用了 ![history-tragedy](http://blog.xiqiao.info/wp-content/uploads/2013/01/historical_tragedy_thum.gif)

> 你在做啥? ![interrupted](http://heeris.id.au/trinkets/ProgrammerInterrupted.png)

> 我的密码是hunter2 原梗: http://bash.org/?244321 解释:http://www.liriansu.com/hunter2-meme

> 如何把一个盗版使用者成功的变成正版客户 参见:http://www.vaikan.com/how-i-converted-a-software-thief-into-a-customer/

> 一次软件升级就把/usr里的东西都删了 参见:https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6#diff-1 现在commit下面的comment已经变成了狂欢了。

> 为什么人要用VI (夹杂私货) 作为一个Vimer,这篇文章肯定是我要推荐的:http://www.viemu.com/a-why-vi-vim.html

> Recursion ![image](https://user-images.githubusercontent.com/3286092/79827997-57f0ef80-83d2-11ea-80bb-2debd1a52574.png)

哈哈哈可以,那我整理一下

@daya0576 对的,Migration 确保兼容即可。 最常见的例子是加字段确保 `null=True`,不论是发布还是回滚都是支持的。 有的时候 Migration 需要在代码层发布之后。 举个例子是删字段,则需要先在代码层发布了无引用的代码,然后单独进行一次 Migration。 通过 Django Migration 也是能做到完全兼容的, 跟用裸 SQL 直接管理 Migration 的最佳实践其实是一样的。 [这里有篇前人写的 Django Migration without Downtime](https://pankrat.github.io/2015/django-migrations-without-downtimes/),讲的更详细