I have installed Flyway in my server and trying to execute a My-sql file which I placed in sql folder of flyway.
I have done Flyway baseline, and when I run flyway migrate
it says "Schema xyz
is up to date. No migration necessary." No matter what I do it always gives me the same result.
My sql files are named 1__act.sql
, 2__act.sql
, 3__act.sql
.
My config file has
flyway.url=jdbc:mysql://mysql:port/xyz
flyway.user=flywayuser
flyway.password=flywaypassword
flyway.baselineVersion=1
Flyway uses a schema history table to track the version of each database, recording in it every versioned migration file applied to build that version.
Flyway is an open-source database migration tool. It strongly favors simplicity and convention over configuration. It is based around just 7 basic commands: Migrate, Clean, Info, Validate, Undo, Baseline and Repair.
You haven't followed the naming conventions for Versioned SQL migrations, they should be prefixed with a V
. e.g. V1__act.sql
.
Note that the prefix is configurable, but above is the default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With