Replace use of deprecated Liquibase#update(Contexts) method in H2LiquibaseExtension #389
Labels
code cleanup
Fix issues reported by Sonar or any other code analysis tools
Milestone
Liquibase has deprecated a bunch of the
update
methods (as well as manyrollback
methods). We need to find a replacement.Note that this indirectly affects
PostgresLiquibaseTestExtension
, because it uses thePreparedDbExtension
from the Zonky embedded-postgres library, which uses the same deprecatedLiquibase#update
method in theLiquibasePreparer
class.I tried using a few of the non-deprecated
update
methods and they didn't work, because it seems they did not actually perform the database update! e.g. I triedupdate(Contexts contexts, Writer output)
andupdate(Contexts contexts, LabelExpression labelExpression, Writer output)
. The documentation is non-existent on theLiquibase#update
methods that are not deprecated, i.e. they have no javadocs. And, the deprecated methods don't tell you anything about what the replacement is, so this is going to take some work.The text was updated successfully, but these errors were encountered: