Eric B.
Eric B.

Reputation: 24441

How to prevent Liquibase from executing a modified version of the changelog?

I'm running Liquibase 3.6.2 and am looking for a way to prevent developers from modifying an existing changelog by adding/removing changesets. Liquibase defines a changeset as non-mutable; changing any parameter or dependency in a changeset will throw a violation error, but unfortunately, I do not see any way to prevent this from a changelog perspective.

Essentially, I'm trying to implement a convention that once a changelog is run, it can no longer be modified. New changesets must be added to a newer changelog instead.

Is there anyway I can accomplish this? How does everyone else manage non-mutability of changelogs?

Upvotes: 0

Views: 310

Answers (1)

kedar panday
kedar panday

Reputation: 1

once a changelog is run, it can no longer be modified and of you do, you will get checksum error. The best practice is to always add new changesets that needs to be added in relate to the existing changeset.

Upvotes: 0

Related Questions