How to synchronize development and production database

前端 未结 13 2503
春和景丽
春和景丽 2020-12-23 21:53

Do you know any applications to synchronize two databases - during development sometimes it\'s required to add one or two table rows or new table or column. Usually I write

13条回答
  •  囚心锁ツ
    2020-12-23 22:13

    You asked for a tool or application answer, but what you really need is a a process answer. The underlying theme here is that you should be versioning your database DDL (and DML, when needed) and providing change scripts to be able to update any version of your database to a higher version.

    This set of links provided by Jeff Atwood and written by K. Scott Allen explain in detail what this ought to look like - and they do it better than I can possibly write up here: http://www.codinghorror.com/blog/2008/02/get-your-database-under-version-control.html

提交回复
热议问题