Altering database tables in Django

前端 未结 7 1372
野性不改
野性不改 2020-12-07 11:33

I\'m considering using Django for a project I\'m starting (fyi, a browser-based game) and one of the features I\'m liking the most is using syncdb to automatica

7条回答
  •  抹茶落季
    2020-12-07 11:47

    So far in my company we have used the manual approach. What works best for you depends very much on your development style.

    We generally have not so many schema changes in production systems and somewhat formalized rollouts from development to production servers. Whenever we roll out (10-20 times a year) we do a fill diff of the current and the upcoming production branch reviewing all the code and noting what has to be changed on the production server. The required changes might be additional dependencies, changes to the settings file and changes to the database.

    This works very well for us. Having it all automated is a niche vision but to difficult for us - maybe we could manage migrations but we still would need to handle additional library, server, whatever dependencies.

提交回复
热议问题