How do you maintain revision control of your database structure?

前端 未结 5 1743
栀梦
栀梦 2021-01-16 14:12

What is the simplest way of keeping track of changes to a projects database structure?

When I change something about the database (eg, add a new table, add a new fie

5条回答
  •  一个人的身影
    2021-01-16 14:50

    You can get a tool like Sql Compare from Red-Gate which allows you to point to two databases and it will let you know what is different, and will build alter scripts for you.

    If you're using .NET(Visual Studio), you can create a Database project and check that into source control.

提交回复
热议问题