How to specify initSQL in Flyways command line tool?
<p>Flyway's Java API provides capability to specify SQL statements which are executed right after the connection to the target database was established (via Flyway.setDatasource => <a href="https://flywaydb.org/documentation/api/javadoc/org/flywaydb/core/Flyway.html#setDataSource-java.lang.String-java.lang.String-java.lang.String-java.lang.String...-" rel="nofollow">javadoc</a>). A typical use case for such SQLs is session initialization. </p>

<pre><code>Flyway flyway = new Flyway();

// datasource with initilization SQL 
flyway.setDataSource(url, user, password, initSQL);

flyway.setLocations("sql/migrations");
flyway.migrate();
</code></pre>

<p>I'm wondering if there isn't a similar functionality in Flyway's command line tool. I've already browsed official documentation ressources available at <a href="https://flywaydb.org/documentation/commandline/" rel="nofollow">https://flywaydb.org/documentation/commandline/</a> but I did not find a way to accomplish this.</p>