I am using migrations to keep my database up-to-date so my co-worker and I can have the same database structure and data.
A typical usage scenario is like follows:
1. I do changes to the database in native mysql
2. I run 'mvn clean package' to make sure I can run step 3.
3. I run 'java -jar ... db dump > migrations.xml' to update/replace the migrations.xml file content.
4. I run 'mvn clean package' to include the new migrations.xml file
5. I run 'java -jar ... fast-forward --all' to mark all pending changes as applied.
My question is if there's any smoother way to do this without having to package my project between the migration steps?
Am I using it totally wrong? I am always doing my changes directly in sql and doesn't want to use DDL.