Search code examples
playframeworkplayframework-2.0playframework-evolutions

Regenerate evolution scripts in play 2


I am still developing first version of my application on play 2. How could I regenerate evolution scripts?


Solution

  • Disclaimer: it will destroy your existing database and create new one!

    The auto-evolution will auto-regenerate when:

    • you are running your app in the dev mode
    • in application.conf you have this line not commented : ebean.default="models.*"
    • there is only one file in your evolutions folder and it's 1.sql
    • it has this comment at the beginning:

    # --- Created by Ebean DDL