Do you put your database static data into source-control ? How?

后端 未结 9 1654
逝去的感伤
逝去的感伤 2020-12-14 18:17

I\'m using SQL-Server 2008 with Visual Studio Database Edition.

With this setup, keeping your schema in sync is very easy. Basically, there\'s a \'compare schema\' t

9条回答
  •  情话喂你
    2020-12-14 19:10

    The solution I use is to have create and change scripts in source control, coupled with version information stored in the database.

    Then, I have an install wizard that can detect whether it needs to create or update the db - the update process is managed by picking appropriate scripts based on the stored version information in the database.

提交回复
热议问题