Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regenerate evolution scripts in play 2

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

like image 438
angelokh Avatar asked May 29 '12 21:05

angelokh


1 Answers

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

like image 83
biesior Avatar answered Nov 20 '22 09:11

biesior