如何从模型更新数据库? [英] How I can Update database from Model?
本文介绍了如何从模型更新数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好!
我不想删除数据库并创建新的数据库,因为我的数据库中还有一些数据
I don't want to deleted database and create new database because I have some data in my database yet
推荐答案
Hello andrey3510!
Hello andrey3510!
我认为(只想......)你无法从新创建的/更新数据库更新模型,因为表格已下垂并重新创建。
I think (only think...) you cannot update the database from the new created/updated model, because the tables are droped and created anew.
Martin
这篇关于如何从模型更新数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文