playframework/playframework

Ability to manually resolve evolution without trying to run the script

Open

#2 951 ouverte le 28 mai 2014

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Scala (4 032 forks)batch import
help wantedtype:feature

Métriques du dépôt

Stars
 (12 623 stars)
Métriques de merge PR
 (Merge moyen 10j 17h) (69 PRs mergées en 30 j)

Description

Fairly commonly when creating a new evolution script, I start by changing the actual database on my local machine. Then put that change in the evolution script. Play will then prompt me to run the script, which fails, then offer to manually resolve it. As I have already applied the changes I can immediately click the "Mark it resolved" button.

I've tried going directly to /@evolutions/resolve/default/[n] and it doesn't work.

It would be good during development to always have the option to manually override an evolution and directly mark it as resolved. This would also help with applying minor changes in the evolution script without doing the full destructive Downs script.

Guide contributeur