Automatic generation of migration SQL for Flyway

后端 未结 1 374
说谎
说谎 2021-02-05 17:21

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

1条回答
  •  梦如初夏
    2021-02-05 17:56

    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

    0 讨论(0)
提交回复
热议问题