Transferring changes from a dev DB to a production DB

后端 未结 5 815
梦谈多话
梦谈多话 2021-01-01 07:13

Say I have a website and a database of that website hosted locally on my computer (for development) and another database hosted (for production)...ie first I do the changes

5条回答
  •  时光取名叫无心
    2021-01-01 07:50

    We do this in the (Ruby on) Rails world by writing "migrations," which capture the changes you make to the DB structure at each point. These are run with a migration tool (a task for rake), which also writes to a DB table so it knows whether a particular migration has been run or not.

    You could make a structure like this for your dev platform (.Net?), but I think that in other answers to this question people will suggest available tools for handling database versioning in your development platform, or perhaps for your specific DB.

    I don't know any of these, but check out this list. I see a lot of pay things out there, but there must be something free. Also check this out.

提交回复
热议问题