I have scripts in folder like this:
D:/dev/DatabaseSetup/oracle/010__script.sql
D:/dev/DatabaseSetup/oracle/020__script.sql
D:/dev/DatabaseSetup/oracle/030__script.sql
D:/dev/DatabaseSetup/oracle/040__script.sql
D:/dev/DatabaseSetup/oracle/050__script.sql
I would like to keep all scripts in same folder, but ignore some of them in migration. To be precise, I would like to include just this scripts
<locations>
<location>filesystem:oracle/020__script.sql</location>
<location>filesystem:oracle/030__script.sql</location>
<location>filesystem:oracle/040__script.sql</location>
</locations>
Path of pom.xml is D:/dev/DatabaseSetup/oracle/pom.xml.
I read this question , but figured out that I cannot specify single sql script for migration (in accepted answer it is used classpath which points to java package).
Is it even possible? I got following error:
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2.1:migrate (default-cli) on proje
ct DatabaseSetup: org.flywaydb.core.api.FlywayException: Unable to scan for SQL migrations in lo
cation: filesystem:D:/dev/DatabaseSetup/oracle/020__script.sql: Invalid filesystem path:
D:/dev/DatabaseSetup/oracle/020__script.sql -> [Help 1]
When I change <locations> to
<locations>
<location>filesystem:oracle</location>
</locations>
flyway executes all scripts.