Automatic generation of migration SQL for Flyway

Is it possible for new Flyway migrations to be generated by JPA/Hibernate's automatic schema generation when a new model / field etc. are added via Java code.

It would be useful to capture the auto-generated SQL and save it directly to a new Flyway migration, for review / editing / committing to a project repository.

Thank you in advance for any assistance or enlightenment you can offer.

Answers


Flyway doesn't have built-in support for diff, I use liquidbase within a maven spring boot project and changelogs can be created from JPA/hibernate changes by using:

mvn liquibase:diff

All of the options for liquibase diff are located here: http://www.liquibase.org/documentation/maven/maven_diff.html


Need Your Help

The file '/Views/Home/Index.cshtml' has not been pre-compiled, and cannot be requested

azure

I have this project in windows Azure cloud. when i wanted to deploy the project in Staging, it threw me an error as "The file '/Views/Home/Index.cshtml' has not been pre-compiled, and cannot be req...

CommandConverter - Valid exception or .NET Bug

.net exception icommand

I'm getting an exception in my C#/.NET application that reads: