playframework / playframework/play-ebean
Evolutions not run property on play 2.8
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 111
- Forks
- 67
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 19
Description
I have just migrated from play 2.6 and an older version of play-ebean plugin to play 2.8 and version 6.0.0 of this plugin
We have noticed a change of behavior when running evolutions on a dev server
Previous behavior on a working app
- Change a model in any way (let's assume that we change the name of a property)
- Starting the app notifies the developer that an evolution has to be run
- Pressing the apply button results in possibly another error (inconsistent state), and marking the problem as resolved causes the entire database to be deleted and recreated with the new schema
Current behavior
- Pressing the apply button notifies of an inconsistent state
- Continuing to press the button reloads the same page
- After some reloads the max url limit is reached
In the end what i would like to achieve is that when ebean generates a different schema, the entire database is deleted and recreated accordingly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the migration from Play 2.6 and the older play-ebean plugin to Play 2.8 with play-ebean 6.0.0. Trace the development evolution apply flow when Ebean generates a different schema, especially the inconsistent-state reload loop. Done means the development database is deleted and recreated with the new schema.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100