The SQL statements to run to initialize a new database connection immediately after opening it.
This is mainly used for setting some state on the connection that needs to be shared across all scripts, or should not be included into any one script.
./flyway -initSql="ALTER SESSION SET NLS_LANGUAGE='ENGLISH';" info
flyway.initSql=ALTER SESSION SET NLS_LANGUAGE='ENGLISH';
FLYWAY_INIT_SQL=ALTER SESSION SET NLS_LANGUAGE='ENGLISH';
Flyway.configure()
.initSql("ALTER SESSION SET NLS_LANGUAGE='ENGLISH';")
.load()
flyway {
initSql = "ALTER SESSION SET NLS_LANGUAGE='ENGLISH';"
}
<configuration>
<initSql>ALTER SESSION SET NLS_LANGUAGE='ENGLISH';</initSql>
</configuration>