Looking for solution for database versioning

后端 未结 6 1223
忘掉有多难
忘掉有多难 2021-01-04 18:19

Problem description:

In our project we have one \"production database\" and many \"devs\". We want to know how we can manage and install the changes. We already have

6条回答
  •  执笔经年
    2021-01-04 18:34

    Red Gate's Sql Compare tool can compare two tables (or two collections of DDL scripts, or one set of scripts to a table, etc) and generate the migration script for you.

    If you're working in Ruby you can look into "Ruby Migrations", which is a formalized way of doing DB versioning in code. (There are similar things in .NET such as RikMigrations and Fluent Migrator, and I'm sure similar things exist for other platforms as well).

    As Randy Minder said, you can also use VS DB Edition to manage your schema for you, although I think the RedGate tools work just as easily and don't tie you to a specific platform or IDE.

提交回复
热议问题