Stored procedures/DB schema in source control

后端 未结 21 984
孤街浪徒
孤街浪徒 2020-12-04 05:56

Do you guys keep track of stored procedures and database schema in your source control system of choice?

When you make a change (add a table, update an stored proc,

21条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 06:52

    Script everything (object creation, etc) and store those scripts in source control. How do the changes get there? It's part of the standard practice of how things are done. Need to add a table? Write a CREATE TABLE script. Update a sproc? Edit the stored procedure script.

    I prefer one script per object.

提交回复
热议问题