Why and when Liquibase?

前端 未结 6 1696
灰色年华
灰色年华 2021-01-30 06:19

I have searched for this answer on stack overflow, but I couldn\'t find any questions on this. I am new to Liquibase and want to learn

  • Why Liquib
6条回答
  •  失恋的感觉
    2021-01-30 06:34

    The key differentiator between a self-managed schema create file and Liquibase (or other schema migration tools) is that the latter provides a schema changelog. This is a record of the schema changes over time. It allows the database designer to specify changes in schema & enables programmatic upgrade or downgrade of the schema on demand.

    There are other benefits, such as:

    • Database vendor independence (this is questionable, but they try)
    • automated documentation
    • database schema diffs

    One alternative tool is flyway.

    You would choose to use a schema migration tool when you want or need to automatically manage schema updates without losing data. That is, you expect the schema to change after your system has been deployed to a long-lived environment such as a customer site or stable test environment.

提交回复
热议问题