Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flyway - Cant run Multiple sql Scripts

Tags:

flyway

My files - V3.2-alter.sql and V3.2-3insert_fmcc.sql

If i am running flyway - i get error ..

[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2.1:migrate (default) on project SnapdealOPS: org.flywaydb.core.api.FlywayException: Found more than one migration with version 3.2 Offenders:

[ERROR] -> /home/kartikeya/git/SnapdealOPS/MySQLDB/release-V3.2/V3.2-1alter.sql (SQL) [ERROR] -> /home/kartikeya/git/SnapdealOPS/MySQLDB/release-

V3.2/V3.2-3insert_fmcc.sql (SQL)

Cant i run multiple sql scripts for single version . Do i have to put all the queries in single file .

like image 525
kaka Avatar asked Apr 17 '26 08:04

kaka


1 Answers

If you want two files, you need to give them two versions (like 3.2.0.0.1 and 3.2.0.0.2). That is how the order of application is defined.

like image 81
Thilo Avatar answered Apr 20 '26 20:04

Thilo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!