How to synchronize development and production database

前端 未结 13 2593
春和景丽
春和景丽 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 21:58

    If you write your SQL statements for your development database (which are, I imagine, series of DDL instructions such as CREATE, ALTER and DROP), why don't you keep track of them by recording them in a table, with a "version" index? You will then be able to:

    1. track your version changes
    2. make a small routine allowing the "automatic" update of your production database by sending the recorded instructions to the database.

提交回复
热议问题