Stored procedures/DB schema in source control

后端 未结 21 951
孤街浪徒
孤街浪徒 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:28

    I highly recommend maintaining schema and stored procedures in source control.

    Keeping stored procedures versioned allows them to be rolled back when determined to be problematic.

    Schema is a less obvious answer depending on what you mean. It is very useful to maintain the SQL that defines your tables in source control, for duplicating environments (prod/dev/user etc.).

提交回复
热议问题