when i run my play framework 2.0 scala app via ‘play run’, i get sql errors, because the sql evolutions (aka migrations) were never run. i start from a brand new database.
i know the evolutions plugin is running because i can see an empty play_evolutions table in my database.
what can cause this to happen?
this can happen under two circumstances:
the evolution file has a sql syntax error, causing the evolution to fail. (this wasn’t my problem but someone on the mailing list said this happened to them.)
the 1.sql file is under the incorrect dir structure “evolutions.default/1.sql” instead of “evolutions/default/1.sql”. unfortunately intellij cannot tell the difference and renders both situations identically in the project explorer.
further reading: