Every time I run my Play! application, I am told my database needs an evolution. This overwrites the information I currently have in the db, What could I be doing wrong?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is normal, when you’re using auto generated evolutions in your project, Therefore after first run, you should disable it (by removing first 2 commented lines from
1.sql) and switch to manual evolutions.http://www.playframework.org/documentation/2.0.2/Evolutions
Of course in next evolutions you need to use
ALTERs instead ofCREATEs for modifying existing structures