开发者

Is there a way to use south for migration , and not lose data?

开发者 https://www.devze.com 2023-03-14 17:56 出处:网络
I used South as the migration tool, but i dint know开发者_如何学C it will format all my db ! I dont want to lose my db . It doesn\'t have to format your data, you can integrate existing apps/tables:

I used South as the migration tool, but i dint know开发者_如何学C it will format all my db ! I dont want to lose my db .


It doesn't have to format your data, you can integrate existing apps/tables:

http://south.aeracode.org/docs/tutorial/part1.html#converting-existing-apps

Read through the docs before using it.


South shouldn't trash your data. But a Django gotcha in general to be aware of is that any initial_data fixtures will get imported whenever you do a syncdb, so bewore of leaving those files hanging around.

0

精彩评论

暂无评论...
验证码 换一张
取 消