Django Book 翻译
菜单>:
TOC
返回
原文:
When we introduced the ``syncdb`` command earlier in this chapter, we noted that ``syncdb`` merely creates tables that dont yet exist in your database it does *not* sync changes in models or perform deletions of models. If you add or change a models field, or if you delete a model, youll need to make the change in your database manually. This section explains how to do that.
翻译:
当我们在这一章的前面介绍 ``syncdb`` 命令的时候,我们强调 ``syncdb`` 仅仅创建数据库中不存在的表,而不会同步模型的修改或者删除到数据库。如果你添加或者修改了模型的一个字段,或者删除一个模型,你必须手动改变你的数据库。下面我们看看怎么来做。
备注:
译者: