Migrations for Java

前端 未结 8 1984
栀梦
栀梦 2020-11-28 01:48

I use both ruby on rails and Java. I really enjoy using migrations when I am working on a rails project. so I am wondering is there a migrations like tool for Java? If the

相关标签:
8条回答
  • 2020-11-28 02:04

    Grails has a dbmigrate utility that is patterned after the one from Rails. Since it's implemented in Groovy, you should be able to use it from any of your Java projects.

    0 讨论(0)
  • 2020-11-28 02:09

    There are also two independent implementations of rails-like migrations for Java:

    1) Maven-based migrations from Carbon Five

    2) Ant-based tasks from Hashrocket (my personal favorite)

    Although these packages were written for Maven and Ant specifically, with some work you can adapt them to just about anything.

    0 讨论(0)
  • 2020-11-28 02:11

    Liquibase is another project in this domain worth checking out.

    0 讨论(0)
  • 2020-11-28 02:13

    For a feature comparison between

    • Flyway
    • Liquibase
    • c5-db-migration
    • dbdeploy
    • mybatis
    • MIGRATEdb
    • migrate4j
    • dbmaintain
    • AutoPatch

    have a look at http://flywaydb.org

    This should be a good start for you and anyone else to select the right tool for the job

    0 讨论(0)
  • 2020-11-28 02:13

    I ran across this post while researching the same question. I haven't come to any conclusions about the best tool or approach yet, but one tool that I've come across which hasn't been mentioned in other answers so far is dbdeploy. I'd be interested to read any comparisons of these tools.

    Some other relevant resources: Martin Fowler and Pramod Sadalage's somewhat aged post on Evolutionary Database Design, and the book Refactoring Databases: Evolutionary Database Design by Sadalage and Scot Ambler.

    0 讨论(0)
  • 2020-11-28 02:14

    Migrate4j seems like a candidate, but the project doesn't look mature enough for production usage.

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