3

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 .

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

But they all belong to our single release (version) 3.2 ... i mean logically it wouldnt make sense to have different versions based on file not on version
You need some mechanism to define the order of application. Flyway provides: order of lines within the file and numeric ordering of version numbers between files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.