Dmitri
Dmitri

Reputation: 9157

How are connections managed in Flyway command line?

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.

Upvotes: 0

Views: 98

Answers (1)

Axel Fontaine
Axel Fontaine

Reputation: 35169

Two connections: one for the metadata table and one for the migrations. So yes, your assumption should work.

Upvotes: 1

Related Questions