igorkamyshev / trona

Write DB migrations with SQL and run them with a CLI
MIT License
30 stars 5 forks source link

Check down script #202

Open igorkamyshev opened 3 years ago

igorkamyshev commented 3 years ago

Add option for rerun scripts for test down script. Like "up-down-up" in transactions.

uka17 commented 3 years ago

@igorkamyshev Could you please elaborate more on a task description. Not sure if I understand it properly. Example can bring more clarity.

igorkamyshev commented 3 years ago

The original idea is to add a flag for check down script in place.

Like if you call trona --check-down, it should execute new evolutions up-script, then execute new evolutions down-script and again up-script.

It can be useful in development to check down script correctness, I think.

uka17 commented 3 years ago

Got your point, now its clear