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

后端 未结 9 1656
逝去的感伤
逝去的感伤 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 18:47

    I have come across this when developing CMS systems.

    I went with appending the static data (the stuff referenced in the code) to the database creation scripts, then a separate script to add in any 'initialisation data' (like countries, initial product population etc).

提交回复
热议问题