Reputation: 11
I want to execute a specific statement before each changeSet, in the same transaction as the changeSet statements - this statement will set some transaction properties. The same statement should be executed for all changeSets and I don't want to repeat it in each changeSet definition. Ideally it will be able to react to some changeSet attributes like 'runInTransaction'. Is there a way to do this?
Upvotes: 1
Views: 800
Reputation: 6383
One way to do it:
Liquibase has an extension system. Check out this page for an overview.
You could write your own "plugin" that adds this functionality. This is probably also the most flexible way to do it.
I doubt there is another way to do this without writing your own plugin - but I also don't know each and every part of liquibase...
Upvotes: 1