Is it possible that in the property spring.liquibase.change-log i point to a changelog file outside of my jar file?
Is it possible that in the property spring.liquibase.change-log i point to a changelog file outside of my jar file?
Hi @fabiopires10,
Yes you can point to a changelog file outside of the jar file using a relative path or add ‘/’ to the classpath parameter. You can find more details on this page
Adding the answer to @fabiopires10’s question from his SO post, so that someone else looking for the same gets the solution to it.
If you are using the Java liquibase Api just use a ResourceAccessor
ResourceAccessor accessor= new FileSystemResourceAccessor("C:\\Users\\demo\\Documents\\Migrations"); return new Liquibase(changelog, accessor, connection);
Thanks!
Rakhi Agrawal