I couldn't find this in the docs (and am too lazy to read the code) - does Flyway CL use a single connection for the entire task, including callbacks?
Specifically, I'd like to know if I can use beforeMigrate
(or beforeEachMigrate
) to set database session parameters.
Two connections: one for the metadata table and one for the migrations. So yes, your assumption should work.